View Full Version : 406 Not accesible error
05-06-2006, 06:23 PM
I installed a fresh install of Pixelpost 1.4.2 on a subdomain about a month ago. I then made a small adjustment to the files, so that the address line would say index.php?page=links, instead of index.php?x=links, for instance. Everything was working great, browing, navigating, posting new images, login, logout... Everything. Until today. I tried to post a photo earlier this day, but got an error, just a red box at the bottom of the screen, and as far as I can remember, all it said was 'error'.
I then realized that in the admin folder, all links still said ?x=, and not ?page= as I thought I had set it too. I might have forgotten to make these changes to the admin folder, I don't know, but now suddenly it didn't work. I went through all files, changing back to ?x=, but then I got 406 error saying:
An appropriate representation of the requested resource /admin/index.php could not be found on this server.
Apache/1.3.34 Server at www2.trondheimdailyphoto.com Port 80"
I then uploaded all Pixelpost files to my server again, did a fresh install, but I kept the old database. I thought that would be enough, but I still get the same message, even though I overwrited all the files on the server.
Does anyone know what could be wrong, and more important, how do I fix this? I've been working on this for 10 hours straight now, but I can't seem to get it fixed no matter what I do.
I'm in need of some serious expert help.
Thank you in advance.
05-06-2006, 06:52 PM
we can only offer help for up to date releases. upgrade to 1.5 - if that doesn't fix the problem (which it should do) then just repost here saying so.
05-06-2006, 07:14 PM
Ok, upgraded to 1.5 Beta, the latest available version from pixelpost.org. I followed the instructions to the point, and now I can't even login anymore. If I type in the correct username and password, it just reloads the admin login page, but if I type in a wrong username or password, I get a message saying "Username or password incorrect".
05-06-2006, 09:03 PM
Btw, I have tested this in IE, Firefox and Opera, but the same thing happens in all of them. I am still unable to login, and I have even tried to reset the password, to no avail.
05-07-2006, 02:07 AM
I added the following code to the top of the /index.php and /admin/index.php files, and I am finally able to log in.
I then get some error codes at the top of the login page:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /hsphere/local/home/xxxxx/www2.trondheimdailyphoto.com/admin/index.php:3) in /hsphere/local/home/xxxxx/www2.trondheimdailyphoto.com/admin/index.php on line 38
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /hsphere/local/home/xxxxx/www2.trondheimdailyphoto.com/admin/index.php:3) in /hsphere/local/home/xxxxx/www2.trondheimdailyphoto.com/admin/index.php on line 38
Both these errors also appear on the top of the main admin page after I log in, in addition to the following error at the bottom:
Warning: Unknown(): write failed: No space left on device (28) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
Then when I try to post a photo I get the 406 error, Not accepted. The resource you are looking for can not be opened by the browser.
If I then hit refresh in my browser, PP sends me back to the login screen. If I hit refresh again, I get the following message:
Your browser sent a request that this server could not understand.
The request line contained invalid characters following the protocol string."
If I hit refresh again after that, I get sent back to the login screen again.
My server info:
You are running Pixelpost version 1.5 - April 2006
Latest pixelpost version: Check
Looking for help or want to give feedback, please step into pixelpost forum.: www.pixelpost.org/forum/
PHP-version 4.4.1 (Pixelpost's min requirement: PHP version: 4.3.0 )
MySQL version 4.0.26-standard (Pixelpost's min requirement: MySQL: 3.23.58 )
GD-lib bundled (2.0.28 compatible) with JPEG support
File Uploads to pixelpost site are possible.
Server Software Apache/1.3.34 (Unix) PHP/4.4.1 mod_ssl/2.8.25 OpenSSL/0.9.7a FrontPage/126.96.36.19935 mod_throttle/3.1.2
EXIF Pixelpost is using exifer v1.5 for EXIF-information.
Guessed imagepath: /hsphere/local/home/xxxxx/www2.trondheimdailyphoto.com/images/
Configured Imagepath: /hsphere/local/home/xxxxx/www2.trondheimdailyphoto.com/images/
Image Directory: OK - Can we write to the directory? YES. CHMOD: 0777
Thumbnails Directory: OK - Can we write to the directory? YES. CHMOD: 0777
Language Directory: OK
Addons Directory: OK
Includes Directory: OK
Templates Directory: OK
05-07-2006, 11:29 AM
It's not working today either, so I'm still in desperate need of help.
05-07-2006, 07:56 PM
I deleted all files today, and copied PP 1.5RC1-2 to my server and installed. I use the same database as before, but I still have the same problem. I have deleted cookies and cache, tested in Opera, IE and Firefox, but I get the same error in all three browsers. Isn't there anyone who knows what is wrong, or can help me find out?
05-08-2006, 05:49 AM
the problem is with your apache setting and mode security
The solution was very simple. The following lines were added to the .htaccess file to disable mod_security:
05-08-2006, 10:16 AM
Thank you, raminia. I'll be out of town untill tomorrow night, but I'll give it a shot when I get back.
05-11-2006, 01:51 AM
I called my webhost yesterday to find out if they had made any updates etc to the server, which might have caused that error, but they were unable to recreate the problem. When I got home I tried to post a photo, and it worked. I have tried posting a couple of photos since then, and everything seems to be working like a charm, without making the adjustments you suggested.
Do you have any idea what could have caused this error?
05-11-2006, 05:06 AM
as this was a problem on the server side and they could not recreate or explain you the reasons, how should we?
Sometimes it is with computers the same like in real life, when repairing the tv for example:
be happy that it works and concentrate on the really important things ;=)
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.