DotDragnet
May 24, 2012, 07:34:50 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Mobile users - Our forum is Tapatalk enabled. http://www.tapatalk.com/
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Is This A PHP Version Problem?  (Read 969 times)
slaughteredlamb
DDN Contributor
Hero Member
*****
Posts: 1089



peakoverload
View Profile WWW Awards
« on: October 06, 2011, 10:46:57 AM »

I'm trying to get this to work http://www.pdesigner.net/en/php-booking-calendar/booking-calendar-v2 as I'd like to see if it could be used as a Studio Booking calendar for work.

I've downloaded XAMPP and installed it and that's fine and I then copied all the files into the htdocs folder, created a database and ran the install script. After it installed it said that it had completed successfully but it also displayed this error message:

Quote
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\install\includes\functions\database.php on line 39


Now when I go to the home page I get:

Quote
Deprecated: Function session_is_registered() is deprecated in C:\xampp\htdocs\includes\functions\sessions.php on line 111

Deprecated: Function session_is_registered() is deprecated in C:\xampp\htdocs\includes\functions\sessions.php on line 111

Deprecated: Function session_is_registered() is deprecated in C:\xampp\htdocs\includes\functions\sessions.php on line 111

Deprecated: Function session_is_registered() is deprecated in C:\xampp\htdocs\includes\functions\sessions.php on line 111

Deprecated: Function session_is_registered() is deprecated in C:\xampp\htdocs\includes\functions\sessions.php on line 111

Deprecated: Function session_is_registered() is deprecated in C:\xampp\htdocs\includes\functions\sessions.php on line 111


And if I try to access the admin panel it never displays anything with Firefox saying:

Quote
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.


The Booking Calendar script was updated a year ago but nothing since, could this be that it requires PHP 4 whereas I have PHP5 or is it something else?
Logged
Mr Anderson
DDN Contribs
Hero Member
*****
Posts: 2267



ap4a.uk ap4a
View Profile WWW Awards
« Reply #1 on: October 06, 2011, 10:52:47 AM »

Yep, it's an out of date script. Is there a more recent version of it available?

However, they're warning that aspects are deprecated, not errors relating to them no longer working. Turn off the printing of errors and warnings and it should still work fine for the time being. It'll also be a little safer to not tell the world some of the info that can be printed in warnings.
Logged

suedenem
Sr. Member
****
Posts: 410



View Profile Awards
« Reply #2 on: October 06, 2011, 11:05:27 AM »

Yep, it's an out of date script. Is there a more recent version of it available?

However, they're warning that aspects are deprecated, not errors relating to them no longer working. Turn off the printing of errors and warnings and it should still work fine for the time being. It'll also be a little safer to not tell the world some of the info that can be printed in warnings.

And make sure error.log (or whatever you've defined as your error log file) is out of the Web root, too.

I'd move the includes out of the Web root as well, but you might not be too arsed about that.
Logged

So this SEO copywriter walks into a bar, grill, pub, public house, Irish bar, bartender, drinks, beer, wine, liquor...

Beware my weird, cross-dressing comment's; they are pretty standard examples of trolling.
slaughteredlamb
DDN Contributor
Hero Member
*****
Posts: 1089



peakoverload
View Profile WWW Awards
« Reply #3 on: October 06, 2011, 11:19:21 AM »

Ahh right, cheers for that. I thought it probably was  Sad Unfortunately there isn't a more up to date version. Looks like I'm going to have to keep searching as we couldn't run something as unsecure as that. Plus, turning off warnings still doesn't let me log in to the admin area which is vital. That's a real shame as this one was based on OSCommerce making it much easier to adapt etc with plugins
Logged
suedenem
Sr. Member
****
Posts: 410



View Profile Awards
« Reply #4 on: October 06, 2011, 12:11:53 PM »

I wouldn't necessarily recommend it, but do you have PHP4 running on your server?  Some hosts will run PHP4 & PHP5 concurrently, so you could instruct scripts within the booking calendar directory to be parsed with PHP4.
Logged

So this SEO copywriter walks into a bar, grill, pub, public house, Irish bar, bartender, drinks, beer, wine, liquor...

Beware my weird, cross-dressing comment's; they are pretty standard examples of trolling.
sarahA
DDN Contribs
Hero Member
*****
Posts: 2184



View Profile WWW Awards
« Reply #5 on: October 06, 2011, 04:42:54 PM »

The first warning is saying that a boolean (ie. True or false) has been given. Most likely it is trying to get the number of rows returned either from a select statement that has failed (so it'd be false) or from an insert/update/delete. The code for that strikes me as wrong or if it needs to count a specific number of rows it needs to suppress the error (with an @) to prevent it warning you when no rows are returned.

The server redirect, whilst I couldn't be 100% sure without checking the code, sounds more like a htaccess issue/redirect gone wrong OR perhaps it is the script running a never ending loop, but I can't see this being down to a version issue. It sounds more like the htaccess issue.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!