DommyCastles Posted August 19, 2013 Posted August 19, 2013 Hi all, I have a huge problem here and I would love to get some help on the matter. Now, I have an online store which has an 'headers already sent' issue. Warning: session_start() [function.session-start]: open(/home/f-web/fb/c9/pdbikeworks.com/public/www/bikeworks/Online_Store/catalog/includes/work//sess_fa111a1e4f73c50d5399f1470a226b68, O_RDWR) failed: Permission denied (13) in /home/f-web/fb/c9/pdbikeworks.com/public/www/bikeworks/Online_Store/catalog/includes/functions/sessions.php on line 99 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/f-web/fb/c9/pdbikeworks.com/public/www/bikeworks/Online_Store/catalog/includes/functions/sessions.php:99) in /home/f-web/fb/c9/pdbikeworks.com/public/www/bikeworks/Online_Store/catalog/includes/functions/sessions.php on line 99 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/f-web/fb/c9/pdbikeworks.com/public/www/bikeworks/Online_Store/catalog/includes/functions/sessions.php:99) in /home/f-web/fb/c9/pdbikeworks.com/public/www/bikeworks/Online_Store/catalog/includes/functions/sessions.php on line 99 After searching the forums I'm lead to believe it is due to white space before/after my php tags. I have checked my sessions.php file for white space, nothing. I then backtracked and went through index.php, application_top.php, template_top.php, header.php, template_bottom.php, application_bottom.php and still found no white space. I am at my wits end here, and any help would be GREATLY appreciated. Thank you!
DommyCastles Posted August 19, 2013 Author Posted August 19, 2013 I have also just run this on the aforementioned php files: http://addons.oscommerce.com/info/8046 with no help. :mellow:
burt Posted August 19, 2013 Posted August 19, 2013 Store sessions in the Database. This is a setting in the configure.php file.
MrPhil Posted August 19, 2013 Posted August 19, 2013 Start at the other end of the error list (the permission denied error). The "headers already sent" errors are a consequence of the first error. Fix the first error and the others will likely resolve themselves. Whenever you have "headers already sent", if there are any other errors reported before them, take care of those other errors first. Very often, that will eliminate the error message(s) being sent to the browser, which will in turn eliminate the "headers already sent" errors. If "headers already sent" are the first (or only) error(s), look for bad editing (blanks before <?php or after ?>, Byte Order Mark, add-on code in the wrong place (outside of PHP blocks), etc.
DommyCastles Posted August 23, 2013 Author Posted August 23, 2013 Thanks alot everyone. I took care of the issue, turns out it I just had to change the directory where I was storing the sessions. This line: define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' Instead of starting a new topic I'll just post my other issue here. My login page is also not working and returns a 404 error. Here is the link: pdbikeworks.com/bikeworks/Online_Store/catalog/admin It MUST be finding it from somewhere, because my browser's address changes and my session ID is displayed: http://www.pdbikeworks.com/admin/login.php?osCAdminID=SESSION_ID Can anyone shed some light on the situation? Thanks again!
DommyCastles Posted August 23, 2013 Author Posted August 23, 2013 I've looked into it a little further and I think the issue was this line: define('DIR_WS_ADMIN', '/admin/'); need to be changed to: define('DIR_WS_ADMIN', '/bikeworks/Online_Store/catalog/admin/'); Now I come across another whole mess of errors: Warning: main() [function.main]: Unable to access /home/f-web/fb/c9/pdbikeworks.com/public/www//catalog/includes/classes/action_recorder.php in /home/f-web/fb/c9/pdbikeworks.com/public/www/bikeworks/Online_Store/catalog/admin/includes/classes/action_recorder.php on line 13 Warning: main(/home/f-web/fb/c9/pdbikeworks.com/public/www//catalog/includes/classes/action_recorder.php) [function.main]: failed to open stream: Illegal seek in /home/f-web/fb/c9/pdbikeworks.com/public/www/bikeworks/Online_Store/catalog/admin/includes/classes/action_recorder.php on line 13 Warning: main() [function.main]: Unable to access /home/f-web/fb/c9/pdbikeworks.com/public/www//catalog/includes/classes/action_recorder.php in /home/f-web/fb/c9/pdbikeworks.com/public/www/bikeworks/Online_Store/catalog/admin/includes/classes/action_recorder.php on line 13 Warning: main(/home/f-web/fb/c9/pdbikeworks.com/public/www//catalog/includes/classes/action_recorder.php) [function.main]: failed to open stream: Illegal seek in /home/f-web/fb/c9/pdbikeworks.com/public/www/bikeworks/Online_Store/catalog/admin/includes/classes/action_recorder.php on line 13 Fatal error: main() [function.require]: Failed opening required '/home/f-web/fb/c9/pdbikeworks.com/public/www//catalog/includes/classes/action_recorder.php' (include_path='.:/usr/local/lib/php/') in /home/f-web/fb/c9/pdbikeworks.com/public/www/bikeworks/Online_Store/catalog/admin/includes/classes/action_recorder.php on line 13 Help? :mellow:
DommyCastles Posted August 23, 2013 Author Posted August 23, 2013 Fixed it! The problem was this line: define('DIR_WS_CATALOG', 'catalog/'); was directed wrong. Thanks everyone!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.