• Resolved biologyben

    (@biologyben)


    Alright. My site is nearly complete. However, when trying to embed gallery2 into WP2, i’ve got conflicting code.

    Here’s the specifics:

    WordPress is installed in it’s own folder ‘root/blog’ with an index.php in the root folder.

    Gallery2 is installed in it’s own folder, ‘root/gallery2’ with wp-gallery2.php in the wordpress folder ‘blog’.

    The code that’s causing problems is in my sidebar mini-loop: Line 6: require_once("blog/wp-config.php")

    –like this my blog is great, but the gallery doesn’t function do to this error:

    Warning: main(blog/wp-config.php): failed to open stream: No such file or directory in /home/.ohrbach/biologyben/biologyben.lastpromise.com/blog/wp-content/themes/biologyben/sidebar.php on line 6

    Fatal error: main(): Failed opening required ‘blog/wp-config.php’ (include_path=’.:/usr/local/lib/php’) in /home/.ohrbach/biologyben/biologyben.lastpromise.com/blog/wp-content/themes/biologyben/sidebar.php on line 6</Warning: main(blog/wp-config.php): failed to open stream: No such file or directory in /home/.ohrbach/biologyben/biologyben.lastpromise.com/blog/wp-content/themes/biologyben/sidebar.php on line 6

    Fatal error: main(): Failed opening required ‘blog/wp-config.php’ (include_path=’.:/usr/local/lib/php’) in /home/.ohrbach/biologyben/biologyben.lastpromise.com/blog/wp-content/themes/biologyben/sidebar.php on line 6Warning: main(blog/wp-config.php): failed to open stream: No such file or directory in /home/.ohrbach/biologyben/biologyben.lastpromise.com/blog/wp-content/themes/biologyben/sidebar.php on line 6

    If I change the above code to just wp-config.php the gallery embeds wonderfully, but the rest of the site is trashed.

    Help! I need both.

    I could create an identical sidebar.php and have a gallery specific page template to point to the altered .php, but i don’t know where in gallery to change the php-page. any other fixes? Anything at all that would get this to work?

    Thanks ??

    Biologyben.lastpromise.com

  • The topic ‘WP2, Gallery2, & WPG2 conflict…help!’ is closed to new replies.