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: Forbidden  (Read 7358 times)

0 Members and 1 Guest are viewing this topic.

vidros

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Forbidden
« 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
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Forbidden
« Reply #1 on: July 03, 2006, 01:12:06 pm »

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

vidros

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Forbidden
« Reply #2 on: July 03, 2006, 01:14:15 pm »

Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Forbidden
« Reply #3 on: July 03, 2006, 01:16:58 pm »

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

vidros

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Forbidden
« Reply #4 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?
Logged

Nibbler

  • Guest
Re: Forbidden
« Reply #5 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.
Logged

vidros

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Forbidden
« Reply #6 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..
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Forbidden
« Reply #7 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)
Logged
‍I don't answer to PM with support question
Please post your issue to related board

vidros

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Forbidden
« Reply #8 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
Logged

vidros

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Forbidden
« Reply #9 on: July 03, 2006, 05:21:00 pm »

i changed the file upload.php to up.php
Logged

Nibbler

  • Guest
Re: Forbidden
« Reply #10 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.
Logged

vidros

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Forbidden
« Reply #11 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..
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Forbidden
« Reply #12 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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

vidros

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Forbidden
« Reply #13 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
Logged

Nibbler

  • Guest
Re: Forbidden
« Reply #14 on: July 03, 2006, 06:36:59 pm »

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

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Forbidden
« Reply #15 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",
Logged
‍I don't answer to PM with support question
Please post your issue to related board

vidros

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Forbidden
« Reply #16 on: July 03, 2006, 06:48:18 pm »

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

vidros

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Forbidden
« Reply #17 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?
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Forbidden
« Reply #18 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?
Logged
‍I don't answer to PM with support question
Please post your issue to related board

vidros

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Forbidden
« Reply #19 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
Logged
Pages: [1] 2   Go Up
 

Page created in 0.023 seconds with 20 queries.