RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : August 30, 2008, 11:21:43 AM
+  RSGallery2 Support Forums
|-+  Developers corner
| |-+  Nightly Builds for RSGallery2 Legacy, J1.5 or J1.0 - Now Reopened! (Moderators: Daniel Tulp, Chef Groovy)
| | |-+  [SVN-427] Upload Error
Advanced search
  « previous next »
Pages 1
Author
Topic: [SVN-427] Upload Error  (Read 9460 times)
« on: November 06, 2006, 03:38:57 AM »
Chris Offline
Newbie
*
Posts: 9

View Profile Email

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
« Last Edit: November 06, 2006, 07:33:29 AM by Chris » Logged
 
Reply #1
« on: November 06, 2006, 07:46:58 PM »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1204

View Profile WWW Email

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?

Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Reply #2
« on: November 06, 2006, 08:23:22 PM »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1204

View Profile WWW Email

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,
Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Reply #3
« on: November 07, 2006, 12:38:34 AM »
Chris Offline
Newbie
*
Posts: 9

View Profile Email

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.
Logged
 
Reply #4
« on: November 08, 2006, 02:59:34 AM »
Chris Offline
Newbie
*
Posts: 9

View Profile Email

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
« Last Edit: November 08, 2006, 03:10:38 AM by Chris » Logged
 
Reply #5
« on: November 08, 2006, 07:45:09 AM »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1204

View Profile WWW Email

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.
Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Reply #6
« on: November 08, 2006, 12:14:57 PM »
Chris Offline
Newbie
*
Posts: 9

View Profile Email

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
Logged
 
Reply #7
« on: November 08, 2006, 03:09:54 PM »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1204

View Profile WWW Email

Have you set the backend to use ImageMagick then?

Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Reply #8
« on: November 09, 2006, 04:01:31 AM »
Chris Offline
Newbie
*
Posts: 9

View Profile Email

yes i have, but since that isnt working ill try netbpm
Logged
 
Reply #9
« on: November 09, 2006, 07:55:50 AM »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1204

View Profile WWW Email

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.


Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Print  Pages 1
« previous next »
Jump to: