Quote:
Originally Posted by Wilhelm
hi, i have a problem with the hack when uploading has finished. It seems the file was submitted but then:
i use the german version and the text says:
"Fehler beim Hochladen - kann die hochgeladene Datei auf dem Server nicht verschieben."
engl. smth like that: Error while uploading - cannot move the uploaded file on the server.
I have an upload, thumb folder both set to 777, no error messages @LDM
using 2.8.8Post1, local_file_root Website local_file_root_prefix not set
whats the error on that?
btw awesome hack
edit: Tested with full path url, local url, both works, only upload i still get the error msg.
|
Check if the php security setting open_basedir and safe_mode are set (vb/admin/maintenance/phpinfo), and whether your upload directory is within the space allowed by open_basedir - LDM is supposed to be aware of open_basedir, but perhaps there's a problem in the code that I've missed.
If that doesn't point you in the right direction, here's a quick debugging check. Go to vb/admincp/products and plugins and add a new plugin, called, e.g. debug, attached to the hook ldm_upload_filesave, and make sure it's active, with the following code:
Code:
echo 'open_basedir '.ini_get('open_basedir').'<br />';
echo 'safe_mode '.ini_get('safe_mode').'<br />';
echo $fullfile.'<br />';
if (file_exists($fullfile)) {
echo 'file exists<br />';
exit;
}
if (move_uploaded_file($GPC['tmp_name'], $fullfile)) {
echo 'move ok<br />';
}
exit;
then try uploading a file, take a look at the error messages and post them back here. Remember to disable the debug plugin after you've run it.