Woodk1 Posted February 16, 2009 Share Posted February 16, 2009 Hi all, I'm hoping somebody with php knowledge can tell me what's going on. Quick background: I am creating a php page for the front page of my website, which always was shtml using simple SSI includes - I want this php page to also include sessions from our forum, which is a phpbb board so I found a code to create a blank page with sessions. On this front page, I will be using alot of different RSS feeds. Everything SEEMS to be working, except for some reason, I cannot get the RSS feeds to show, in my final index.php. Here is what I am using, to pass sessions for my phpbb users and create my index.php page: <?php /** * @ignore */ define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './phpBB2/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); // Start session $user->session_begin(); $auth->acl($user->data); $user->setup(); page_header($user->lang['PAGE_TITLE']); //Custom code goes here //Tell phpBB which template to use for the output: $template->set_filenames(array( 'body' => 'output_template.html' )); page_footer(); ?> Here is my output, which creates a index page, WITH sessions, but the RSS feeds don't show: http://www.webwaymonsters.com/index.php (Disregard the yahoo sports feed - it's straight javascript) The body SHOULD look like this: http://www.webwaymonsters.com/phpBB2..._template.html If you scroll down to the news feeds you can see, when calling output_template directly, the feeds show fine. It appears there is something in the index.php code, that is not allowing it. At first, I thought maybe I needed to set things up to have html pages parse php, but that is being done, as you can see here: http://www.webwaymonsters.com/output_template.html The code I am using to call each RSS feed in this html document is like this: <?php unset($arnews);?><?php include($_SERVER["DOCUMENT_ROOT"]."/rssfeeds/suntimes.php");?> and it seems to work fine, when the html page is called directly. Can anyone figure what is wrong in my index.php code, that is not allowing these feeds to work? I've cleared all cache's within phpbb, but cannot get them to show. Thanks! Link to comment https://forums.phpfreaks.com/topic/145464-includes-problem/ Share on other sites More sharing options...
Mchl Posted February 16, 2009 Share Posted February 16, 2009 Start with adding some debugging code Add ini_set('display_errors','On'); error_reporting(E_ALL); just after <?php This will enable error messages, that will hopefully tell us something meaningful. Link to comment https://forums.phpfreaks.com/topic/145464-includes-problem/#findComment-763686 Share on other sites More sharing options...
Woodk1 Posted February 16, 2009 Author Share Posted February 16, 2009 Start with adding some debugging code Add ini_set('display_errors','On'); error_reporting(E_ALL); just after <?php This will enable error messages, that will hopefully tell us something meaningful. Hi Mchl and thank you for the help. I placed the code in the index.php page, and I am not seeing any error results anywhere: http://www.webwaymonsters.com/index.php Here now is my updated index.php page: <?php ini_set('display_errors','On'); error_reporting(E_ALL); /** * @ignore */ define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './phpBB2/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); // Start session $user->session_begin(); $auth->acl($user->data); $user->setup(); page_header($user->lang['PAGE_TITLE']); //Custom code goes here //Tell phpBB which template to use for the output: $template->set_filenames(array( 'body' => 'output_template.html' )); page_footer(); ?> Any suggestions? Thanks! Link to comment https://forums.phpfreaks.com/topic/145464-includes-problem/#findComment-763761 Share on other sites More sharing options...
Woodk1 Posted February 17, 2009 Author Share Posted February 17, 2009 Bump Link to comment https://forums.phpfreaks.com/topic/145464-includes-problem/#findComment-764380 Share on other sites More sharing options...
Woodk1 Posted February 18, 2009 Author Share Posted February 18, 2009 If it helps any, the output_template.html resides in my phpbb directory, and the index.php file of course resides on my root directory. What in my index.php isn't allowing the RSS feeds to parse? Link to comment https://forums.phpfreaks.com/topic/145464-includes-problem/#findComment-765539 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.