<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>WordPress DK Forum Topic: sær fejl i bunden af siden</title>
		<link>http://wp-danmark.dk/forum/topic/saer-fejl-i-bunden-af-siden</link>
		<description>WordPress DK Forum Topic: sær fejl i bunden af siden</description>
		<language>da-DK</language>
		<pubDate>Sun, 06 Sep 2026 08:09:50 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Søg]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://wp-danmark.dk/forum/search.php</link>
		</textInput>
		<atom:link href="http://wp-danmark.dk/forum/rss/topic/saer-fejl-i-bunden-af-siden" rel="self" type="application/rss+xml" />

		<item>
			<title>Mark Thomas Gazel om "sær fejl i bunden af siden"</title>
			<link>http://wp-danmark.dk/forum/topic/saer-fejl-i-bunden-af-siden#post-4688</link>
			<pubDate>tors, 24 jan 2008 10:13:43 +0000</pubDate>
			<dc:creator>Mark Thomas Gazel</dc:creator>
			<guid isPermaLink="false">4688@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Jeg vil tro at du skal opdatere både WP og subscribe2. Det er i hvert fald mit bedste bud.&#60;/p&#62;
&#60;p&#62;I nyeste version af subscribe2 behøver du heller ikke ændre noget, da fejlen er rettet, så vidt jeg har forstået.&#60;/p&#62;
&#60;p&#62;Men husk at tage &#60;a href=&#34;http://www.tamba2.org.uk/wordpress/backup/&#34;&#62;backup&#60;/a&#62;, hvis du &#60;a href=&#34;http://codex.wordpress.org/Upgrading_WordPress_Extended&#34;&#62;opdaterer&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Jeg ville nok rette tingene tilbage og opdatere subscribe2 i første omgang og se hvad der skete.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>munthe-kaas om "sær fejl i bunden af siden"</title>
			<link>http://wp-danmark.dk/forum/topic/saer-fejl-i-bunden-af-siden#post-4687</link>
			<pubDate>tors, 24 jan 2008 10:04:45 +0000</pubDate>
			<dc:creator>munthe-kaas</dc:creator>
			<guid isPermaLink="false">4687@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;nu har jeg også opdatet at wysiwyg-delen af interfacet er væk når man vil skrive nye sider eller posts. Kan det have noget med dette problem at gøre? - det virker ikke sådan, for det ændrer sig ikke selvom jeg deaktiverer subscribe2.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>munthe-kaas om "sær fejl i bunden af siden"</title>
			<link>http://wp-danmark.dk/forum/topic/saer-fejl-i-bunden-af-siden#post-4686</link>
			<pubDate>tors, 24 jan 2008 09:50:04 +0000</pubDate>
			<dc:creator>munthe-kaas</dc:creator>
			<guid isPermaLink="false">4686@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;hmm. Den løsning jeg fandt derinde, at erstatte require_once('../wp-config.php'); med require_once(ABSPATH . 'wp-config.php'); i linie 2 fungerede ikke...til gengæld blev fejlmeddelelsen længere...den følgende er statning virkede heller ikke require_once (dirname(dirname(__FILE__)).'/wp-config.php');&#60;/p&#62;
&#60;p&#62;Jeg har ikke opdateret mit wp til nyeste version af frygt for at miste data - kan det have  noget med problemet at gøre?&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Nu hedder fejlen&#60;/strong&#62;&#60;br /&#62;
?php require_once (dirname(dirname(__FILE__)).'/wp-config.php'); $debug = 0; /** ** maybe_create_table() ** Create db table if it doesn't exist. ** Returns: true if already exists or on successful completion ** false on error */ function maybe_create_table($table_name, $create_ddl) { global $wpdb; foreach ($wpdb-&#38;gt;get_col(&#34;SHOW TABLES&#34;,0) as $table ) { if ($table == $table_name) { return true; } } //didn't find it try to create it. $q = $wpdb-&#38;gt;query($create_ddl); // we cannot directly tell that whether this succeeded! foreach ($wpdb-&#38;gt;get_col(&#34;SHOW TABLES&#34;,0) as $table ) { if ($table == $table_name) { return true; } } return false; } /** ** maybe_add_column() ** Add column to db table if it doesn't exist. ** Returns: true if already exists or on successful completion ** false on error */ function maybe_add_column($table_name, $column_name, $create_ddl) { global $wpdb, $debug; foreach ($wpdb-&#38;gt;get_col(&#34;DESC $table_name&#34;,0) as $column ) { if ($debug) echo(&#34;checking $column == $column_name&#60;br /&#62;
&#34;); if ($column == $column_name) { return true; } } //didn't find it try to create it. $q = $wpdb-&#38;gt;query($create_ddl); // we cannot directly tell that whether this succeeded! foreach ($wpdb-&#38;gt;get_col(&#34;DESC $table_name&#34;,0) as $column ) { if ($column == $column_name) { return true; } } return false; } /** ** maybe_drop_column() ** Drop column from db table if it exists. ** Returns: true if it doesn't already exist or on successful drop ** false on error */ function maybe_drop_column($table_name, $column_name, $drop_ddl) { global $wpdb; foreach ($wpdb-&#38;gt;get_col(&#34;DESC $table_name&#34;,0) as $column ) { if ($column == $column_name) { //found it try to drop it. $q = $wpdb-&#38;gt;query($drop_ddl); // we cannot directly tell that whether this succeeded! foreach ($wpdb-&#38;gt;get_col(&#34;DESC $table_name&#34;,0) as $column ) { if ($column == $column_name) { return false; } } } } // else didn't find it return true; } /** ** check_column() ** Check column matches passed in criteria. ** Pass in null to skip checking that criteria ** Returns: true if it matches ** false otherwise ** (case sensitive) Column names returned from DESC table are: ** Field ** Type ** Null ** Key ** Default ** Extra */ function check_column($table_name, $col_name, $col_type, $is_null = null, $key = null, $default = null, $extra = null) { global $wpdb, $debug; $diffs = 0; $results = $wpdb-&#38;gt;get_results(&#34;DESC $table_name&#34;); foreach ($results as $row ) { if ($debug &#38;gt; 1) print_r($row); if ($row-&#38;gt;Field == $col_name) { // got our column, check the params if ($debug) echo (&#34;checking $row-&#38;gt;Type against $col_type\n&#34;); if (($col_type != null) &#38;#38;&#38;#38; ($row-&#38;gt;Type != $col_type)) { ++$diffs; } if (($is_null != null) &#38;#38;&#38;#38; ($row-&#38;gt;Null != $is_null)) { ++$diffs; } if (($key != null) &#38;#38;&#38;#38; ($row-&#38;gt;Key != $key)) { ++$diffs; } if (($default != null) &#38;#38;&#38;#38; ($row-&#38;gt;Default != $default)) { ++$diffs; } if (($extra != null) &#38;#38;&#38;#38; ($row-&#38;gt;Extra != $extra)) { ++$diffs; } if ($diffs &#38;gt; 0) { if ($debug) echo (&#34;diffs = $diffs returning false\n&#34;); return false; } return true; } // end if found our column } return false; } /* echo &#34;&#60;/p&#62;
&#60;p&#62;testing&#60;br /&#62;
&#34;; echo &#34;&#60;/p&#62;
&#60;p&#62;&#34;;&#60;/p&#62;
&#60;p&#62;//check_column('wp_links', 'link_description', 'mediumtext');&#60;br /&#62;
//if (check_column($wpdb-&#38;gt;comments, 'comment_author', 'tinytext'))&#60;br /&#62;
//    echo &#34;ok\n&#34;;&#60;br /&#62;
$error_count = 0;&#60;br /&#62;
$tablename = $wpdb-&#38;gt;links;&#60;br /&#62;
// check the column&#60;br /&#62;
if (!check_column($wpdb-&#38;gt;links, 'link_description', 'varchar(255)'))&#60;br /&#62;
{&#60;br /&#62;
	$ddl = &#34;ALTER TABLE $wpdb-&#38;gt;links MODIFY COLUMN link_description varchar(255) NOT NULL DEFAULT '' &#34;;&#60;br /&#62;
	$q = $wpdb-&#38;gt;query($ddl);&#60;br /&#62;
}&#60;br /&#62;
if (check_column($wpdb-&#38;gt;links, 'link_description', 'varchar(255)')) {&#60;br /&#62;
	$res .= $tablename . ' - ok&#60;br /&#62;
';&#60;br /&#62;
} else {&#60;br /&#62;
	$res .= 'There was a problem with ' . $tablename . '&#60;br /&#62;
';&#60;br /&#62;
	++$error_count;&#60;br /&#62;
}&#60;br /&#62;
echo &#34;&#60;/p&#62;
&#60;p&#62;&#34;; */ ?&#38;gt; Fatal error: Call to undefined function: maybe_add_column() in /hsphere/local/home/doodlers/ungdomskultur.nu/wp-content/plugins/subscribe2/subscribe2.php on line 175
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Mark Thomas Gazel om "sær fejl i bunden af siden"</title>
			<link>http://wp-danmark.dk/forum/topic/saer-fejl-i-bunden-af-siden#post-4684</link>
			<pubDate>ons, 23 jan 2008 23:53:00 +0000</pubDate>
			<dc:creator>Mark Thomas Gazel</dc:creator>
			<guid isPermaLink="false">4684@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Jeg fandt denne tråd. Næstsidste indlæg peger videre til en løsning.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wordpress.org/support/topic/101995&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/support/topic/101995&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Det er subscribe2 plugin'et, der laver ballade, men det kan vist rettes.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>munthe-kaas om "sær fejl i bunden af siden"</title>
			<link>http://wp-danmark.dk/forum/topic/saer-fejl-i-bunden-af-siden#post-4681</link>
			<pubDate>ons, 23 jan 2008 20:59:07 +0000</pubDate>
			<dc:creator>munthe-kaas</dc:creator>
			<guid isPermaLink="false">4681@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Ja...dårlig overskrift, jeg ved det, men jeg synes altså at den er sær. Er der nogen der har oplevet det før - det står i bunden af siden, under min footer.&#60;/p&#62;
&#60;p&#62;Warning: main(): Unable to access ../wp-config.php in /hsphere/local/home/doodlers/ungdomskultur.nu/wp-admin/install-helper.php on line 2 Warning: main(../wp-config.php): failed to open stream: No such file or directory in /hsphere/local/home/doodlers/ungdomskultur.nu/wp-admin/install-helper.php on line 2 Fatal error: main(): Failed opening required '../wp-config.php' (include_path='.:/hsphere/shared/apache/libexec/php4ext/php/') in /hsphere/local/home/doodlers/ungdomskultur.nu/wp-admin/install-helper.php on line 2&#60;/p&#62;
&#60;p&#62;Det drejer sig om &#60;a href=&#34;http://www.ungdomskultur.nu&#34; rel=&#34;nofollow&#34;&#62;http://www.ungdomskultur.nu&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
