EZRAEL9 Posted December 10, 2010 Share Posted December 10, 2010 Can anyone help me resolve an issue i'm having with a "Fatal error: Call to undefined function phpsession_start() in /home/massmar1/public_html/gigamountz.com/messages_details.php on line 1" I've attached the php file for your viewing. Thanks In advance [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/221256-fatal-error-call-to-undefined-function-phpsession_start-in-homemassmar1pub/ Share on other sites More sharing options...
requinix Posted December 10, 2010 Share Posted December 10, 2010 It isn't called "phpsession_start"... Quote Link to comment https://forums.phpfreaks.com/topic/221256-fatal-error-call-to-undefined-function-phpsession_start-in-homemassmar1pub/#findComment-1145578 Share on other sites More sharing options...
EZRAEL9 Posted December 11, 2010 Author Share Posted December 11, 2010 Was you able to take a look at the code??? This is a third party source code so I've been trying to contact support which really doesn't exist...Did you get a chance to look at the file with the code?!?!? Quote Link to comment https://forums.phpfreaks.com/topic/221256-fatal-error-call-to-undefined-function-phpsession_start-in-homemassmar1pub/#findComment-1145833 Share on other sites More sharing options...
Pikachu2000 Posted December 11, 2010 Share Posted December 11, 2010 phpsession_start() doesn't exist. session_start does. I'd be very wary of using that code, as it's blatantly obvious the author didn't bother to test it. Quote Link to comment https://forums.phpfreaks.com/topic/221256-fatal-error-call-to-undefined-function-phpsession_start-in-homemassmar1pub/#findComment-1145834 Share on other sites More sharing options...
PFMaBiSmAd Posted December 11, 2010 Share Posted December 11, 2010 The code does not have any white-space between the <?php tag and the session_start() statement and apparently short-open tags are enabled on your server. The php language parser saw a short opening php tag <? followed by phpsession_start(); instead of <?php session_start(); Quote Link to comment https://forums.phpfreaks.com/topic/221256-fatal-error-call-to-undefined-function-phpsession_start-in-homemassmar1pub/#findComment-1145836 Share on other sites More sharing options...
EZRAEL9 Posted December 12, 2010 Author Share Posted December 12, 2010 Thanks for the input on my problem... It's resolved now, but another problem has emerged. ..........this is the error message that I'm getting now......... Warning: mysql_query() [function.mysql-query]: Access denied for user 'massmar1'@'localhost' (using password: NO) in /home/massmar1/public_html/gigamountz.com/db_config/db_catagory.php on line 8 This is the only page that I'm getting this error on...!!! Any ideas on what I should config to resolve this one as well!?!?!?! Quote Link to comment https://forums.phpfreaks.com/topic/221256-fatal-error-call-to-undefined-function-phpsession_start-in-homemassmar1pub/#findComment-1145986 Share on other sites More sharing options...
PFMaBiSmAd Posted December 12, 2010 Share Posted December 12, 2010 Your database connection code is not working and since you don't have a valid database connection when the mysql_query() is being executed, it is attempting to create a connection using default values. You would need to troubleshoot why your connection code is either not being executed or is failing to create a connection. You would need to post your code if you want help with what it is or is not doing. Quote Link to comment https://forums.phpfreaks.com/topic/221256-fatal-error-call-to-undefined-function-phpsession_start-in-homemassmar1pub/#findComment-1145987 Share on other sites More sharing options...
EZRAEL9 Posted December 12, 2010 Author Share Posted December 12, 2010 Ok here's the error that's being triggered... Warning: mysql_query() [function.mysql-query]: Access denied for user 'massmar1'@'localhost' (using password: NO) in /home/massmar1/public_html/gigamountz.com/db_config/db_catagory.php on line 8 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/massmar1/public_html/gigamountz.com/db_config/db_catagory.php on line 8 Warning: mysql_query() [function.mysql-query]: Access denied for user 'massmar1'@'localhost' (using password: NO) in /home/massmar1/public_html/gigamountz.com/db_config/db_recommend.php on line 8 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/massmar1/public_html/gigamountz.com/db_config/db_recommend.php on line 8 [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/221256-fatal-error-call-to-undefined-function-phpsession_start-in-homemassmar1pub/#findComment-1146306 Share on other sites More sharing options...
PFMaBiSmAd Posted December 12, 2010 Share Posted December 12, 2010 And the problem is the same that someone already stated - Your database connection code is not working and since you don't have a valid database connection when the mysql_query() is being executed, it is attempting to create a connection using default values. You would need to troubleshoot why your connection code is either not being executed or is failing to create a connection. You would need to post your code if you want help with what it is or is not doing. It's also possible that your code is closing the database connection at some point between where it is being opened and where the queries are trying to us it. Quote Link to comment https://forums.phpfreaks.com/topic/221256-fatal-error-call-to-undefined-function-phpsession_start-in-homemassmar1pub/#findComment-1146331 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.