• Hello all! I am trying to integrate Gallery with WordPress so that it has the same dynamic features (i.e. header changes, etc.) as any other WordPress page. I have been using tutorials at http://www.tamba2.org.uk/wordpress/static/ and http://scatteredthoughts.us/wordpress/index.php?p=2 and I am fairly sure that I am doing this at least somewhat correctly but I am getting a php error from one of the WordPress files:

    Fatal error: Call to a member function on a non-object in /homepages/0/d117377189/htdocs/wordpress/wp-includes/functions.php on line 1068

    Currently all that resides on the new page from WordPress is: require(‘../wordpress/wp-blog-header.php’)
    Can anyone help me out with how to handle this error? The page resides at http://reidisanerd.com/gallery/
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Heya. I posted to another thread with the solution I arrived at after an anonymous poster pointed out that it didn’t work when the inclusion of WP was in the scope of a function.

    I’ve been hacking spgm to sit nicely inside WP, and this problem was driving me up the wall. Moving the require_once(‘./wp-blog-header.php’); line to the main part of my spgm.php file instead of inside the gallery showing function made my WP header appear correctly.

    alirob, any chance you would like to share your work on your spgm and WP integration? My dad’s site died on him and I am moving him to WP and he was already using SPGM, thought it might be easier with a head start. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Call to a member function’ is closed to new replies.