Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Warning: session_start
Master_je
Posted on 28 May 2010, 21:06:44

Access: Member
Total Posts: 28
Joined: 2009-06-05

Hello,

I've just installed version 3.5 end I get this error. I don't know what to do:(

Warning: session_start() [function.session-start]: SAFE MODE Restriction in effect. The script whose uid is 1197285 is not allowed to access /var/tmp/ owned by uid 0 in /mnt/web7/50/29/51786929/htdocs/nieuws/admin.php on line 22

Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: files (path: ) in /mnt/web7/50/29/51786929/htdocs/nieuws/admin.php on line 22
#2349
Master_je
Posted on 31 May 2010, 10:22:16

Access: Member
Total Posts: 28
Joined: 2009-06-05

I fixed this problem :).

Solution:
Set this rule in php.ini
session.save_path = "//pre_root//sess_save"

where stands //pre_root//sess_save I fill /var/tmp/ and than it works:).

But i have a other problem now.
When i am in admin.php, i click at news/options/messages and than nothing happend. what is the problem :S
#2356
Chris
Posted on 31 May 2010, 17:40:23

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Can you send me a link to the admin.php file so I can take a look at it to see what the problem is?
#2357
Master_je
Posted on 31 May 2010, 18:28:28

Access: Member
Total Posts: 28
Joined: 2009-06-05

I've fixed the problem :). I put in every php.ini file that rule.
but when i make a new categorie. i get this message

Code:

Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''1'' at line 4 
Statement: INSERT INTO news30_access (name,accounts,accesslevels,sysconfig,newscats,templates,smilies,wordfilters,bannedips,accesslevel,rss,personaloptions,privatemsgs,profile,autoapproved,canapprove,usehtml,cats,imageuploads,news,comments,help,nocat,fileuploads,viewips,fileimages) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) 
Arguments: heerde,0,0,0,0,0,0,0,0,3,1,0,0,0,1,1,1,all,1,0,0,0,1,0,1,1
#2358
Last edited by Chris at 2010-05-31 23:18:14 Reason:
Chris
Posted on 31 May 2010, 18:44:16

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Can you tell me exactly which options you select when trying to make that access level? perhaps take a screenshot of it?
#2359
Master_je
Posted on 31 May 2010, 20:07:04

Access: Member
Total Posts: 28
Joined: 2009-06-05

sorry i said category but i ment access level;). but it make no sens which combination of options i choose.
#2360
Chris
Posted on 31 May 2010, 23:19:59

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Tracked the problem down to a bug in the code. Edit modules/modaccess.php, around line 384~ you'll see this

Code:
(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";


Change that to

Code:
(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";


Simply adding an extra ,? to it. Save and you should now be able to create new access levels.
#2361
Master_je
Posted on 01 Jun 2010, 08:05:29

Access: Member
Total Posts: 28
Joined: 2009-06-05

Thanks it works:D
#2362
Network-13.com © 2013