Forbidden Forbidden
 

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]

Main Menu

Forbidden

Started by vidros, July 03, 2006, 01:08:14 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

vidros

Can someone help me with this error??
I had already tried to solve it, but with no results..
I login in admin mode, but i can't upload any images and i really need it..

Error:

"Forbidden
You don't have permission to access /usado/upload.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

Thnks

Sami

link to your site please
‍I don't answer to PM with support question
Please post your issue to related board


Sami

Upgrade your gallery to 1.4.8 and then check ...
‍I don't answer to PM with support question
Please post your issue to related board

vidros

i had already tried by ftp, but it might not be the correct way, i did by ftp, overwritting the files of coppermine gallery, is this the correct way or is there other way?

Nibbler

It is the correct way, but you haven't actually done that since the old files are still there.

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#13

It is also possible that your host does not allow files named 'upload' to be run. Try renaming the file and typing the new name into your browser.

vidros

But i was able to upload photos until last friday, i tried to install de last version and it gave me the same error..

Sami

do as nibbler suggested
rename your upload.php to somthing else (ghdrt.php) and try to run it (you should log in and then run it)
- please enable debug and give us your new gallery link (1.4.8)
‍I don't answer to PM with support question
Please post your issue to related board

vidros

http://sportmotos.net/usados2

I made what you have told me, can you see if there is something wrong?

user: test
pass: test

vidros

i changed the file upload.php to up.php

Nibbler

Don't post admin details on a public forum.

Since up.php works, it was probably a restriction from your host. You can modify the link to point to up.php in your theme.

vidros

thnks, i have already done it and it works, but i just don't know where i can modify the link to up.php, i can't find it..

Sami

in your theme.php look for $template_gallery_admin_menu if you can't find it then:


// HTML template for gallery admin menu
$template_gallery_admin_menu = <<<EOT

                <div align="center">
                <table cellpadding="0" cellspacing="1">
                        <tr>
<!-- BEGIN admin_approval -->
                                <td class="admin_menu" id="admin_menu_anim"><a href="editpics.php?mode=upload_approval" title="{UPL_APP_TITLE}">{UPL_APP_LNK}</a></td>
<!-- END admin_approval -->
                                <td class="admin_menu"><a href="admin.php" title="{ADMIN_TITLE}">{ADMIN_LNK}</a></td>
                                <td class="admin_menu"><a href="catmgr.php" title="{CATEGORIES_TITLE}">{CATEGORIES_LNK}</a></td>
                                <td class="admin_menu"><a href="albmgr.php{CATL}" title="{ALBUMS_TITLE}">{ALBUMS_LNK}</a></td>
                                <td class="admin_menu"><a href="groupmgr.php" title="{GROUPS_TITLE}">{GROUPS_LNK}</a></td>
                                <td class="admin_menu"><a href="usermgr.php" title="{USERS_TITLE}">{USERS_LNK}</a></td>
                                <td class="admin_menu"><a href="banning.php" title="{BAN_TITLE}">{BAN_LNK}</a></td>
                                <td class="admin_menu"><a href="reviewcom.php" title="{COMMENTS_TITLE}">{COMMENTS_LNK}</a></td>
<!-- BEGIN log_ecards -->
                                <td class="admin_menu"><a href="db_ecard.php" title="{DB_ECARD_TITLE}">{DB_ECARD_LNK}</a></td>
<!-- END log_ecards -->
                                <td class="admin_menu"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
                                <td class="admin_menu"><a href="searchnew.php" title="{SEARCHNEW_TITLE}">{SEARCHNEW_LNK}</a></td>
                                <td class="admin_menu"><a href="util.php" title="{UTIL_TITLE}">{UTIL_LNK}</a></td>
                                <td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
<!-- BEGIN documentation -->
                                <td class="admin_menu"><a href="{DOCUMENTATION_HREF}" title="{DOCUMENTATION_TITLE}" target="cpg_documentation">{DOCUMENTATION_LNK}</a></td>
<!-- END documentation -->
                        </tr>
                </table>
                </div>

EOT;

copy it to your theme.php and change the upload.php to up.php
‍I don't answer to PM with support question
Please post your issue to related board

vidros

it didnĀ“t work, when i confirm the upload of the img it gives me the forbidden error again

Nibbler

Change all occurences of upload.php to up.php in the file itself.

Sami

sorry forget my last answer and do this :

change

'{UPL_PIC_TGT}' => "upload.php",

under include/themes.inc.php
to

'{UPL_PIC_TGT}' => "up.php",
‍I don't answer to PM with support question
Please post your issue to related board

vidros

how do i edit it? sorry, but i'm new here..

vidros

it have already worked, but when i confirm the entry in the album it gives again the same error, what should i do?

Sami

okey , where did you actualy get the error ? what error said?
did you modified that themes.inc.php?
‍I don't answer to PM with support question
Please post your issue to related board

vidros

i choose the image to upload and click next, then appears the next message:

"1 uploads were successful.

Please click 'Continue' to add the files to albums."

i click on continue and it gives the same error :

"Forbidden
You don't have permission to access /usado/up.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. "

And i had already modified themes.inc.php