Config page error Config page error
 

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

Config page error

Started by mcdorison, February 29, 2004, 04:49:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mcdorison

OK, I am running Coppermine on my website http://www.gatorgrounds.com and as far as the average visitor can see it is working just perfectly. However recently, when I log in under my admin account and I try to access the config page (link being to config.php) I get a 404 error. All other options along my admin toolbar work perfectly fine. The file is there on the webserver. I checked the link in the source and it is linked just the same as everything else on the toolbar. I have no clue what else it could be so any help would be appreciated.

hyperion

Sometimes the server is configured to prevent any files named config from executing.  Since you found the link in the source, try changing the name of the file and the link to something fairly innocuous, like fuzzybunnies.php.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

mcdorison

Apparently this is the problem. When I renamed it to configtest or config1 it still didn't work. When I tried fuzzy.php it worked. So now the next question is, how do I change the links? Do I have to go in every php file and change it or is there a quicker way?

hyperion

No, the actual link is only defined in one file (I think.  :) )

Open the main theme folder, then edit theme.php in each theme folder you intend to use.  Search for 'config', and when you find line that defines the link as config.php, change it there.  There will be other matches in the file, but they are not important for you.

<td class="admin_menu"><a href="config.php" title="">
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

mcdorison

I am assuming that the php files in my root dir get built from the theme folders every time I switch themes so I just need to edit the theme.php files and then switch themes?

hyperion

Each theme has its own theme.php file (theme/default/theme.php).  You must change theme.php for each theme you intend to use. Switching between them should work if you are looking for a fast way to confim that the edits are in place.
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)