|
Title: [SVN-427] Upload Error Post by: Chris on November 05, 2006, 10:38:57 pm Im using Joomla 1.0.10, RSGallery 1.10.11 Alpha with the nightly build 427 and php 4.1.1
whenever i try to upload an image in the backend i get: Warning: Invalid argument supplied for foreach() in c:\apache\v-htdocs\joomla\administrator\components\com_rsgallery2\admin.rsgallery2.php on line 886 Image uploaded succesfully! but no image is uploaded also, when i try to do a frontend upload i get: Fatal error: Call to undefined function: mysql_real_escape_string() in c:\apache\v-htdocs\joomla\administrator\components\com_rsgallery2\includes\img.utils.php on line 191 Title: Re: [SVN-427] Upload Error Post by: Ronald Smit on November 06, 2006, 02:46:58 pm Chris,
You are working with a relatively old php version. Most functions are Ok, but the general direction of the component is based on PHP version 4.3.X mysql_real_escape_string is one of them. This is supported from php version 4.3.0+. I'll look into the upload problem again. Can you tell me if this was a single file upload, ZIP-upload or FTP-upload in the backend? Title: Re: [SVN-427] Upload Error Post by: Ronald Smit on November 06, 2006, 03:23:22 pm Chris,
Again trial and error, so attached you'll find a new admin.rsgallery2.php Please copy it over the old one and try again. Make sure you have RSGallery2->Control Panel->debug to YES. Good luck, Title: Re: [SVN-427] Upload Error Post by: Chris on November 06, 2006, 07:38:34 pm Thanks, i'll update my php to 4.4.4,
as to the backend problem, it happens with any form of upload and after copying in the new php file, it still didnt work. Title: Re: [SVN-427] Upload Error Post by: Chris on November 07, 2006, 09:59:34 pm Well, i updated to 4.4.4 and i seem to have come past that problem, now however i get a new problem, when i try to upload a picture in the backend get an error:
- Error Image Upload : THV 03 Rows Merlot.jpg : error creating display image: Array When i do a front end upload it says the upload was successful, but it doesnt actually have any images uploaded With the latest nightly build [432], i get the message: Fatal error: Call to undefined function: imagecreatefromjpeg() in c:\apache\v-htdocs\joomla\administrator\components\com_rsgallery2\includes\img.utils.php on line 571 for a frontend upload Title: Re: [SVN-427] Upload Error Post by: Ronald Smit on November 08, 2006, 02:45:09 am chris,
The last error on createimgfromjpeg suggests that GD2 is not compiled with PHP. Perhaps in the upgrade process you forgot to uncomment the GD2 line in php.ini? This could also cause the first and second image. Please check if your PHP version is with GD2 support. Title: Re: [SVN-427] Upload Error Post by: Chris on November 08, 2006, 07:14:57 am well, i am running it on imagemagick rather than gd2, 6.3.0 to be exact
and as for gd2 support, my php doesnt seem to have it Title: Re: [SVN-427] Upload Error Post by: Ronald Smit on November 08, 2006, 10:09:54 am Have you set the backend to use ImageMagick then?
Title: Re: [SVN-427] Upload Error Post by: Chris on November 08, 2006, 11:01:31 pm yes i have, but since that isnt working ill try netbpm
Title: Re: [SVN-427] Upload Error Post by: Ronald Smit on November 09, 2006, 02:55:50 am What kind of server setup are you using?
- Windows or LINUX - Apache or other Do you have root access? Every PHP version has GD2 support, but you need to activate it first. |