cannot update admin.php cannot update admin.php
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

cannot update admin.php

Started by ace09041982, June 07, 2006, 09:43:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ace09041982

Hi all, i have made a new installation of coppermine gallery 1.4.7, in a sub folder with a brand new sql database as per the instructions, however, when i click config i am taken to the admin.php page, i change the settings that i need to change but when i click on "save new configuration" i get taken to a page thaty says

<quote>

  The resource cannot be displayed
The resource you are looking for cannot be opened by your browser.

--------------------------------------------------------------------------------

Please try the following:

Click the  Back button to try another link.
Click  Search to look for information on the Internet.




HTTP Error 406 - Not acceptable
Internet Explorer 
<end quote>

When i click back i have an error on page icon at the bottom of internet explorer

details are

line:   97
Char:  9
error:  'Hideall' is undefined
code:  0

can anyone advise what might be the problem

thanks

ace09041982

Joachim Müller



ace09041982

tried using firefox an got this....

Not Acceptable
An appropriate representation of the requested resource /gallery/admin.php could not be found on this server.

Apache/1.3.36 Server at www.wonderfulolsens.co.uk Port 80

Joachim Müller

try renaming the file to something else (e.g. "foobar.php") and access it manually (by typing in the address into your browser's address bar). Then try submitting the form again.

ace09041982

still comes up with the same message.


Not Acceptable
An appropriate representation of the requested resource /gallery/foobar.php could not be found on this server.

Apache/1.3.36 Server at www.wonderfulolsens.co.uk Port 80

Joachim Müller

H, I guess you should ask your webhost for support then.

ace09041982

is there a way to replace a no with a yes in another file eg. config.inc.php that means that i don't use the interface?

Tranz

Not sure what you are asking.

Paver

"hideall" is a javascript function in scripts.js.  When I try to load your scripts.js file, I get the same 406 error message: http://www.wonderfulolsens.co.uk/gallery/scripts.js.  On my galleries, I can load scripts.js fine.

So check the permissions on scripts.js to make sure it's readable by all (and possibly executable by all).

But since this is a 406 error, it might be a webhost setting.  I would expect a "permission denied" message if the permission were set incorrectly.

ace09041982

there must be a file that the admin writes to. (e.g. the changes made in admin.php are written to a file called settings.php)  Can i not edit the settings file directly instead of using the admin page as an interface to write the setting.

Paver

There is no settings file.  The admin config panel settings are written to the database table cpg_config (where "cpg_" at the beginning may be different depending upon your table prefix setting).

You can modify the database tables directly using a MySQL tool like phpMyAdmin.  This is very clumsy though as there are many settings.

But if your problem is scripts.js, then you'll find that things like the full-size image pop-up window will give the same error.

ace09041982

so the problem is accessing the scripts.js file and this would be a webhost problem

Paver

That's my guess. For some reason, your webserver is blocking access to that file or file type.  You could try to use another javascript file on your site and see what happens.

For Coppermine, you could copy the functions in scripts.js into your themes/yourtheme/template.html file, making sure to remove the line referencing the file:
<script type="text/javascript" src="scripts.js"></script>

Actually, try removing that line and see what happens.  Usually a web page that cannot find a javascript function will just ignore it and move on.

For the admin.php page, you don't need the hideall() and show_section() functions because if they don't exist, the config panel will just have all its sections open.

Tranz

I think I've seen cases where the server blocked because of the name, scripts. Try renaming the file to something like coolstuff.js and edit the template.html file accordingly.

ace09041982

i just looked through foobar.php (previously named admin.php) and there is no word in the file called hideall() or show_section(), could my admin file screwed?

Tranz

Can you rename the .js file and see if you get the same 406 error when you go to it directly?

ace09041982

i tried re-uploading admin.php, edited the template file to change the scripts.js to gallery.js, edited the admin.php file to change the scripts.js to gallery.js logged in to admin and all the catagorys were collapsed, (which had not been before).
BUT when i clicked save new config, i got the same message again

  The resource cannot be displayed
The resource you are looking for cannot be opened by your browser.

--------------------------------------------------------------------------------

Please try the following:

Click the  Back button to try another link.
Click  Search to look for information on the Internet.




HTTP Error 406 - Not acceptable
Internet Explorer 

Tranz

Hmm... something is still referencing scripts.js. I am able to access http://www.wonderfulolsens.co.uk/gallery/gallery.js just fine. I did a search for scripts.js and I don't see where else it might be causing the problem. My admin.php doesn't have reference to scripts.js so I don't understand how you were able to edit what you said you did.

I'm guessing that there might be some caching. Try using another browser or clear your cache. If you still have the problem, delete the scripts.js file to see if you get a 404 instead of 406.

ace09041982

deleated the entire installation, reinstalled the new updated 1.4.8, got the same thing again, changed the allow user reg in phpmysql, deleted the scripts, still getting err406, tried another browser and still err 406