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
-
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
-
link to your site please
-
http://www.sportmotos.net/usados
-
Upgrade your gallery to 1.4.8 and then check ...
-
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?
-
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.
-
But i was able to upload photos until last friday, i tried to install de last version and it gave me the same error..
-
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)
-
http://sportmotos.net/usados2
I made what you have told me, can you see if there is something wrong?
user: test
pass: test
-
i changed the file upload.php to up.php
-
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.
-
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..
-
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
-
it didnīt work, when i confirm the upload of the img it gives me the forbidden error again
-
Change all occurences of upload.php to up.php in the file itself.
-
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",
-
how do i edit it? sorry, but i'm new here..
-
it have already worked, but when i confirm the entry in the album it gives again the same error, what should i do?
-
okey , where did you actualy get the error ? what error said?
did you modified that themes.inc.php?
-
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
-
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