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 & Fatal Error messages!
1 2
Sallyc
Posted on 25 Feb 2011, 22:47:04

Access: Member
Total Posts: 61
Joined: 2011-02-25

I set up my test site and everything was going fine. Then I created a RSS feed and suddenly my admin page showed this error:

Warning: require_once(/data/25/2/98/45/2424045/user/2657060/htdocs/testSGHill/news//language/english.php) [function.require-once]: failed to open stream: No such file or directory in /data/25/2/98/45/2424045/user/2657060/htdocs/testSGHill/news/langmsg.php on line 28

Fatal error: require_once() [function.require]: Failed opening required '/data/25/2/98/45/2424045/user/2657060/htdocs/testSGHill/news//language/english.php' (include_path='.:/usr/services/vux/lib/php') in /data/25/2/98/45/2424045/user/2657060/htdocs/testSGHill/news/langmsg.php on line 28

I thought maybe I messed something up so I tried 1)uploading the admin page again from my local server which did not help and 2) deleting the RSS entry from the SQL database which also did not help.

So I have no idea what went wrong, or how to get into admin the site now. I hope you can help!
#3239
Chris
Posted on 25 Feb 2011, 22:51:11

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

Try deleting your cookies then load the admin page again to see if you're able to login now.

Does your server have the PHP setting register_globals enabled?
#3240
Sallyc
Posted on 25 Feb 2011, 23:02:34

Access: Member
Total Posts: 61
Joined: 2011-02-25

I just went back and the admin page came up now. But I hadn't had a chance to do what you said so I'm not sure what happened.

When I log in I do get the warning "The PHP setting 'register_globals' has been detected as enabled. It's recommended you disable this as it can cause security issues and errors to occur." but honestly I don't know how to change that.

Thank you for your reply.
#3241
Chris
Posted on 25 Feb 2011, 23:51:33

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

The register_globals setting is an old PHP setting that is being removed in newer versions of PHP, it caused more problems than it solved.

To disable it depends on your host, try creating a file called .htaccess and place it in the root directory of your server. Inside it place this code

Code:
php_flag register_globals off


Once you've done that try logging into the admin area again to see if the message about register_global is gone.
#3242
Sallyc
Posted on 26 Feb 2011, 00:17:39

Access: Member
Total Posts: 61
Joined: 2011-02-25

That didn't turn out so well. Got an Internal Server Error. The site I am working on will be hosted in a subdir (multiple domains are hosted on one hosting acct, pointing to different directories) so maybe that's the reason for the warning. My server's php version is 5.2.13 so I don't think that's old.

But everything is up and running now, which was the reason for my original post. I guess I'll try and make the RSS feed again and hope it wasn't the cause of my problems.

I'm loving the software, btw. I really looked around a lot and this is so well written and has great support documentation and a user forum that actually has answers in it! Thank you for all your work!

#3243
Sallyc
Posted on 26 Feb 2011, 00:40:56

Access: Member
Total Posts: 61
Joined: 2011-02-25

Okay, so it's done it again. What I did was create a RSS feed. After I clicked Create I got the admin screen with my RSS creations listed (which was just this one.) I wasn't sure where I get the code to insert the feed into my page so I clicked on the edit pencil by the RSS I just created, and then I got the screen with the Warnings & Fatal errors.

Do you know why it's doing this? I hope it's something stupid I'm doing, because that's easy to fix.

Update: about 2-3 minutes later, the admin panel comes back again. So I don't know if i should just stay away from the RSS feature or what.
#3244
Last edited by Sallyc at 2011-02-26 00:42:11 Reason:
Chris
Posted on 26 Feb 2011, 00:42:41

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

register_globals is what's causing the problem, Can you tell me which webhost you're using so I can try find out how to disable it?
#3245
Last edited by Chris at 2011-02-26 00:42:53 Reason:
Sallyc
Posted on 26 Feb 2011, 00:46:38

Access: Member
Total Posts: 61
Joined: 2011-02-25

Network solutions
#3246
Chris
Posted on 26 Feb 2011, 00:49:38

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

Create a file called php.ini, move it to the your /cgi-bin directory, inside it put this code

Code:
register_globals = off


And hopefully register_globals should be disabled and the error should no longer happen.
#3247
Sallyc
Posted on 26 Feb 2011, 00:57:19

Access: Member
Total Posts: 61
Joined: 2011-02-25

Awesome - that did it!! I could even click on the edit pencil in my RSS entry.

Thank you! :smile2:
#3248
1 2
Network-13.com © 2013