forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: vidros on July 03, 2006, 01:08:14 pm

Title: Forbidden
Post by: vidros on July 03, 2006, 01:08:14 pm
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
Title: Re: Forbidden
Post by: Sami on July 03, 2006, 01:12:06 pm
link to your site please
Title: Re: Forbidden
Post by: vidros on July 03, 2006, 01:14:15 pm
http://www.sportmotos.net/usados
Title: Re: Forbidden
Post by: Sami on July 03, 2006, 01:16:58 pm
Upgrade your gallery to 1.4.8 and then check ...
Title: Re: Forbidden
Post by: vidros on July 03, 2006, 01:21:28 pm
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?
Title: Re: Forbidden
Post by: Nibbler on July 03, 2006, 01:36:22 pm
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.
Title: Re: Forbidden
Post by: vidros on July 03, 2006, 04:57:20 pm
But i was able to upload photos until last friday, i tried to install de last version and it gave me the same error..
Title: Re: Forbidden
Post by: Sami on July 03, 2006, 05:03:25 pm
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)
Title: Re: Forbidden
Post by: vidros on July 03, 2006, 05:19:30 pm
http://sportmotos.net/usados2

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

user: test
pass: test
Title: Re: Forbidden
Post by: vidros on July 03, 2006, 05:21:00 pm
i changed the file upload.php to up.php
Title: Re: Forbidden
Post by: Nibbler on July 03, 2006, 05:25:32 pm
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.
Title: Re: Forbidden
Post by: vidros on July 03, 2006, 05:58:33 pm
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..
Title: Re: Forbidden
Post by: Sami on July 03, 2006, 06:11:44 pm
in your theme.php look for $template_gallery_admin_menu if you can't find it then:

Code: [Select]
// 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
Title: Re: Forbidden
Post by: vidros on July 03, 2006, 06:32:27 pm
it didnīt work, when i confirm the upload of the img it gives me the forbidden error again
Title: Re: Forbidden
Post by: Nibbler on July 03, 2006, 06:36:59 pm
Change all occurences of upload.php to up.php in the file itself.
Title: Re: Forbidden
Post by: Sami on July 03, 2006, 06:46:17 pm
sorry forget my last answer and do this :

change
Code: [Select]
'{UPL_PIC_TGT}' => "upload.php",
under include/themes.inc.php
to
Code: [Select]
'{UPL_PIC_TGT}' => "up.php",
Title: Re: Forbidden
Post by: vidros on July 03, 2006, 06:48:18 pm
how do i edit it? sorry, but i'm new here..
Title: Re: Forbidden
Post by: vidros on July 03, 2006, 09:08:10 pm
it have already worked, but when i confirm the entry in the album it gives again the same error, what should i do?
Title: Re: Forbidden
Post by: Sami on July 03, 2006, 09:12:45 pm
okey , where did you actualy get the error ? what error said?
 did you modified that themes.inc.php?
Title: Re: Forbidden
Post by: vidros on July 03, 2006, 10:04:17 pm
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
Title: Re: Forbidden
Post by: Sami on July 03, 2006, 10:10:42 pm
oops , so your sever blocked up.php too !!!
it's strange , ask your host about that,may be it's a PHPSuExec issue check up.php permissions