• OK, can someone answer me this: to integrate external pages into your existing WP theme—add < ? php require(‘./wp-blog-header.php’); ? > to the external php file and of course make a call to the WP sidebar, header and footer? Does this not integrate a php file with your WP theme?

Viewing 10 replies - 31 through 40 (of 40 total)
  • No other files modd’ed than which ones?

    Thread Starter carnold

    (@carnold)

    head.php only been modd’ed with < ? require_once(‘blah/blah’); ? >

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    At the top of that function in cache.php, around line 185, do you see this:

    function load_group_from_db($group) {
    global $wpdb;
    ...

    Line 206 is the $wpdb->hide_errors() line, and the only way that that would fail is if the global line is missing. or something else is wrong somewhere.

    The only thing I can easily think of is that your cache.php is somehow corrupt. Try replacing it with a fresh copy from the download zip on here. Might work.

    Thread Starter carnold

    (@carnold)

    Yes, that line 185 is there. I will extract a new cache.php.

    Okay, require the wp-blog-header.php file at the bottom of the Vanilla file conf/database.php, nowhere else.

    Thread Starter carnold

    (@carnold)

    Same error when i extract a new cache.php file.
    @filosofo-That gave me the forum interface with this error on the “panel” section of the forum:
    Warning: mysql_affected_rows() [function.mysql-affected-rows ]: A link to the server could not be established in /srv/www/htdocs/wp-includes/wp-db.php on line 161
    You can see what i mean by panel section here https://www.mytimewithgod.net/forum

    Near the top of Vanilla’s library/Framework/Framework.Class.MySQL.php you should see this:

    class MySQL extends Database {
    function CloseConnection() {
    if ($this->Connection) @mysql_close($this->Connection);
    }

    Add a line so it looks like this instead:

    class MySQL extends Database {
    function CloseConnection() {
    if ($this->Connection) @mysql_close($this->Connection);
    global $wpdb; $wpdb = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);
    }

    Boy, I’m glad others showed up to help, carnold. You guys are WAY beyond me by now.

    Thread Starter carnold

    (@carnold)

    Dude, you are the man!!! That took the Warning: mysql_affected_rows() [function.mysql-affected-rows ]: A link to the server could not be established in /srv/www/htdocs/wp-includes/wp-db.php on line 161 error away. Dare i try to call the header?
    @vkaryl-I thank you for your help earlier and this community is great, full of knowledge.

    Thread Starter carnold

    (@carnold)

    Well, whatever you did, it worked……Check it at https://www.mytimewithgod.net/forum
    If i put in the call to get the footer, it pushes the forum down to the bottom but i hope i can fix that. Need to fix some CSS stuff but it did work ??

Viewing 10 replies - 31 through 40 (of 40 total)
  • The topic ‘wp-blog-header.php’ is closed to new replies.