Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] Includes not working after a move to a new host (http://forum.bytesforall.com/showthread.php?t=18045)

Graveyard Shifter Jul 24, 2012 11:33 PM

[SOLVED] Includes not working after a move to a new host
 
After moving WordPress to a new host some strange problem appeared that prevents my Atahualpa 3.6.4 theme to display correctly. Basically what I see after a page load is an empty page with just a background. Tracing this problem I discovered that the cause is an include statement on line 18 in header.php that fails to execute correctly:
PHP Code:

    <?php if( $bfa_ata['html_inserts_header'] != '' ) include 'bfa://html_inserts_header'?>

On the old host it was loading a css stylesheet which is defined in HTML Inserts: Header section of Atahualpa Options. On the new host it loads nothing and causes a termination in a page load process which means that a page generated is blank except some HTML header statements that goes before this include statement, all statements after line 18 are not executed at all.

Trying to investigate further I commented this include statement out and a page was generating as expected until the next include statement <?php include 'bfa://html_inserts_body_tag'; ?> which is on line 21.

So my guess is that include 'bfa://html_inserts_...' statements does not work on a new host for some reason. Not new to WordPress, I moved WP to other hosts several times before without any issues.

Turning on WP_DEBUG gave me no messages.

Is this some kind of server configuration issue? How does exactly include 'bfa://html_inserts_header' work? I used include statement with php or other file name only. How does exactly 'bfa://html_inserts_header' resolve? Is this some kind of symbolic link? :confused:

Will be grateful to anybody who may shed some light on this weird issue ...

juggledad Jul 25, 2012 02:55 AM

Thiis is probably the suhosin issue (do a search on suhosin for more info) I would suggest upgrading to 3.7.7 which doesn't use the include but you loose the ability to include php in most theme options (wordpress restriction)

Graveyard Shifter Jul 25, 2012 08:55 AM

Yep, that's certainly a suhosin, because Atahualpa version 3.7.7 works well.
It's all clear now. Thank you, juggledad!


All times are GMT -6. The time now is 02:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.