Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2   Go Down

Author Topic: cannot update admin.php  (Read 15979 times)

0 Members and 1 Guest are viewing this topic.

ace09041982

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
cannot update admin.php
« on: June 07, 2006, 09:43:21 am »

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
« Last Edit: June 09, 2006, 04:23:30 pm by Paver »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: cannot update admin.php
« Reply #1 on: June 07, 2006, 09:50:57 am »

Link?
Logged

ace09041982

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: cannot update admin.php
« Reply #2 on: June 07, 2006, 09:52:49 am »

Logged

ace09041982

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: cannot update admin.php
« Reply #3 on: June 07, 2006, 10:09:57 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: cannot update admin.php
« Reply #4 on: June 07, 2006, 10:22:26 am »

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.
Logged

ace09041982

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: cannot update admin.php
« Reply #5 on: June 07, 2006, 10:52:35 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: cannot update admin.php
« Reply #6 on: June 07, 2006, 10:54:02 am »

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

ace09041982

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: cannot update admin.php
« Reply #7 on: June 07, 2006, 06:49:25 pm »

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?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: cannot update admin.php
« Reply #8 on: June 07, 2006, 10:24:08 pm »

Not sure what you are asking.
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: cannot update admin.php
« Reply #9 on: June 07, 2006, 10:33:03 pm »

"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.
Logged

ace09041982

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: cannot update admin.php
« Reply #10 on: June 08, 2006, 07:28:39 am »

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.
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: cannot update admin.php
« Reply #11 on: June 08, 2006, 07:39:52 am »

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.
Logged

ace09041982

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: cannot update admin.php
« Reply #12 on: June 08, 2006, 07:45:33 am »

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

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: cannot update admin.php
« Reply #13 on: June 08, 2006, 08:02:39 am »

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:
Code: [Select]
<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.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: cannot update admin.php
« Reply #14 on: June 08, 2006, 08:13:07 am »

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.
Logged

ace09041982

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: cannot update admin.php
« Reply #15 on: June 08, 2006, 08:19:58 am »

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?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: cannot update admin.php
« Reply #16 on: June 08, 2006, 08:25:16 am »

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

ace09041982

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: cannot update admin.php
« Reply #17 on: June 08, 2006, 08:33:10 am »

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 
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: cannot update admin.php
« Reply #18 on: June 08, 2006, 08:45:24 am »

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.
Logged

ace09041982

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: cannot update admin.php
« Reply #19 on: June 08, 2006, 01:34:24 pm »

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
Logged
Pages: [1] 2   Go Up
 

Page created in 0.027 seconds with 19 queries.