You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 56 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Problems with PHP5 [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Divvy
Lieutenant
Lieutenant


Joined: Jul 25, 2004
Posts: 213


PostPosted: Wed May 16, 2007 9:19 am Reply with quoteBack to top

Hi guys!
My server always run with 4.4.4 PHP version and now I´ve put the 5.2.1 PHP version.
After finish the upgrade, I cannot enter in my site, because appears an white screen with this errors:
Quote:
Warning: session_start() [function.session-start]: SAFE MODE Restriction in effect. The script whose uid is 32005 is not allowed to access owned by uid 0 in /home/tuga/public_html/index.php on line 18

Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: files (path: ) in /home/tuga/public_html/index.php on line 18


I have disable the Safe Mode to enter in my site. But I´ve got another error in Downloads module:
Quote:
Warning: mktime() expects parameter 1 to be long, string given in /home/tuga/public_html/modules/Downloads/index.php on line 801
[Recomendar Legenda] Recomendar

Warning: mktime() expects parameter 1 to be long, string given in /home/tuga/public_html/modules/Downloads/ns_view_download_file.php on line 287


Line 18 of the index.php:
Code:
session_start();


Line 801 of the modules/Downloads/index.php:
Code:
mktime ("LC_TIME", "$locale");


Line 287 of the modules/Downloads/ns_view_download_file.php:
Code:
mktime ("LC_TIME", "$locale");


Can someone help me? Smile
Find all posts by DivvyView user's profileSend private message
hue
Support Mod
Support Mod


Joined: Apr 18, 2003
Posts: 368

Location: Ohio

PostPosted: Wed May 16, 2007 9:36 am Reply with quoteBack to top

Try changing this
Code:
mktime ("LC_TIME", "$locale");

to this
Code:
mktime (LC_TIME, $locale);
As always, make a backup Smile

_________________
Go Go Buckeyes!!
Find all posts by hueView user's profileSend private messageICQ Number
murdo
Nuke Cadet
Nuke Cadet


Joined: Jun 03, 2007
Posts: 2


PostPosted: Mon Jun 04, 2007 11:18 am Reply with quoteBack to top

help!

I get the same error in my Downloads Module!!

Code:
Warning: mktime() expects parameter 1 to be long, string given in /home/gamersfi/public_html/modules/Downloads/index.php on line 2142


And here is the code from my module around that area:

Code:
    setlocale (LC_TIME, $locale);

    ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $datetime);

    $datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));

    $datetime = ucfirst($datetime);
Find all posts by murdoView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.174 Seconds - 277 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::