collapse

* User Info

 
 
Welcome, Guest. Please login or register.

* Recent Posts

Can't get RSG "Show My Galleries" to work by Dampfnudel
[February 25, 2019, 11:01:55 AM]


Change the order of uploaded images in the gallery by whazzup
[February 19, 2019, 10:37:29 PM]


Upload timeout for large galleries (500 images each) by whazzup
[February 11, 2019, 10:07:25 PM]


Greetings from Ronald Smit by whazzup
[January 06, 2019, 03:39:22 PM]


Pluign and module by whazzup
[June 08, 2018, 11:57:13 PM]


Version 4.4.1 released by whazzup
[May 31, 2018, 04:31:16 PM]


search.html.php refer to rsgsearch.css with a wrong path by whazzup
[January 13, 2018, 08:12:04 PM]


Slow Gallery with many Photos by whazzup
[September 22, 2017, 09:22:33 AM]

Batch upload error and single file upload error

  • 11 replies
  • 8862 views
Batch upload error and single file upload error
« on: March 01, 2007, 01:00:05 PM »
Hello,
I'm still having problems with uploading images.

When uploading using batch I don't see the pictures at step 2 and when I press the Upload button I return to Step 1 and get the following message:

Please select gallery for ALL images!\\n(Also for images that will be deleted.\\nnThis will be corrected in future version!)

But I selected a gallery.

When I try to upload a single file I get the following errors:

Warning: copy() [function.copy]: open_basedir restriction in effect. File(/var/tmp/phpktL15E) is not within the allowed path(s): (/usr/home/families/:/usr/lib/php:/usr/local/lib/php:/tmp) in /usr/home/families/public_html/joomla/administrator/components/com_rsgallery2/includes/img.utils.php on line 280

Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/var/tmp/phpktL15E) is not within the allowed path(s): (/usr/home/families/:/usr/lib/php:/usr/local/lib/php:/tmp) in /usr/home/families/public_html/joomla/administrator/components/com_rsgallery2/includes/img.utils.php on line 281

Warning: move_uploaded_file(/var/tmp/phpktL15E) [function.move-uploaded-file]: failed to open stream: Operation not permitted in /usr/home/families/public_html/joomla/administrator/components/com_rsgallery2/includes/img.utils.php on line 281

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/var/tmp/phpktL15E' to '/usr/home/families/public_html/joomla/images/rsgallery/original/dsc00113.jpg' in /usr/home/families/public_html/joomla/administrator/components/com_rsgallery2/includes/img.utils.php on line 281
- Error Image Upload : dsc00113.jpg : could not copy /var/tmp/phpktL15E image to: /usr/home/families/public_html/joomla/images/rsgallery/original/dsc00113.jpg

I'm getting more and more frustrated. Can someone please help me?

I just installed: RSGallery2 1.12.2 Alpha - SVN: 587

Thanx

Re: Batch upload error and single file upload error
« Reply #1 on: March 01, 2007, 02:43:15 PM »
First update to the latest Nightly Build. This holds an improved upload system, that could solve your problems.
Let me know if that fixes things.

Cheers,
Ronald Smit
Retired RSGallery2 Developer
Creator of the original RSGallery component
FAQ|Known issues

Re: Batch upload error and single file upload error
« Reply #2 on: March 01, 2007, 04:31:31 PM »
I installed the Nightly Build but now I get the following line at step 2:

Warning: Invalid argument supplied for foreach() in /usr/home/families/public_html/joomla/administrator/components/com_rsgallery2/admin.rsgallery2.html.php on line 754

And then when I use the upload button, I return to step 1 with this message again:

Please select gallery for ALL images!\\n(Also for images that will be deleted.\\nnThis will be corrected in future version!)

RSGallery2 1.12.2 Alpha - SVN: 618

Re: Batch upload error and single file upload error
« Reply #3 on: March 01, 2007, 04:41:39 PM »
OK,

1. Does that mean that you now see the images in step 2?
2. Are you sure you selected a gallery for every image in the overview in step 2?
3. Are you sure you use ZIP-files and not tar or rar or another compression format?
4. Does sinlge file upload work now?


Another thing I'd like you to try?:
If you select a gallery already in step 1, does the batch upload work?

Thanks,

Ronald Smit
Retired RSGallery2 Developer
Creator of the original RSGallery component
FAQ|Known issues

Re: Batch upload error and single file upload error
« Reply #4 on: March 01, 2007, 05:33:25 PM »
1. No, I don?t see images
http://www.familiestigter.nl/images/batch.jpg
2. Yes, I still get the same error message:
http://www.familiestigter.nl/images/fout%20na%20batch.jpg

3. Yes, made with Winzip
4. No, I still get this error message:
http://www.familiestigter.nl/images/fout%20na%20single%20upload.jpg

Warning: copy() [function.copy]: open_basedir restriction in effect. File(/var/tmp/phpHco4YP) is not within the allowed path(s): (/usr/home/families/:/usr/lib/php:/usr/local/lib/php:/tmp) in /usr/home/families/public_html/joomla/administrator/components/com_rsgallery2/includes/img.utils.php on line 280

Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/var/tmp/phpHco4YP) is not within the allowed path(s): (/usr/home/families/:/usr/lib/php:/usr/local/lib/php:/tmp) in /usr/home/families/public_html/joomla/administrator/components/com_rsgallery2/includes/img.utils.php on line 281

Warning: move_uploaded_file(/var/tmp/phpHco4YP) [function.move-uploaded-file]: failed to open stream: Operation not permitted in /usr/home/families/public_html/joomla/administrator/components/com_rsgallery2/includes/img.utils.php on line 281

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/var/tmp/phpHco4YP' to '/usr/home/families/public_html/joomla/images/rsgallery/original/dsc00113.jpg' in /usr/home/families/public_html/joomla/administrator/components/com_rsgallery2/includes/img.utils.php on line 281
- Error Image Upload : dsc00113.jpg : could not copy /var/tmp/phpHco4YP image to: /usr/home/families/public_html/joomla/images/rsgallery/original/dsc00113.jpg

I have tried so many galleries and with all of them I get stuck at uploading.

If this doesn?t work I will have to use a link, but I prefer this one.

Thanx

Re: Batch upload error and single file upload error
« Reply #5 on: March 01, 2007, 07:42:47 PM »
Am I correct in understanding that you have this problem with all galleries?

Can you please copy and paste your system setup?
You can find this in the Joomla backend under System Info.
Please copy the Relevant PHP settings and Server settings in this forum.

Is it your own server or is it a server by a hosting provider?



« Last Edit: March 01, 2007, 08:18:57 PM by Ronald Smit »
Ronald Smit
Retired RSGallery2 Developer
Creator of the original RSGallery component
FAQ|Known issues

Re: Batch upload error and single file upload error
« Reply #6 on: March 01, 2007, 09:24:16 PM »
It's a server from a hosting provider.

Do you mean this info:

PHP built On:  FreeBSD rbs061.purehosting.nl 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 8 10:21:06 UTC 2005 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 
Database Version:  4.0.27 
PHP Version:  4.4.3 
Web Server:  Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.3 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7e 
WebServer to PHP interface:  apache 
Joomla! Version:  Joomla! 1.0.11 Stable [ Sunbow ] 28 August 2006 20:00 UTC 
User Agent:  Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2) 
 
 
Relevant PHP Settings:  Joomla! Register Globals Emulation:  OFF   
Register Globals:  ON   
Magic Quotes:  ON   
Safe Mode:  OFF   
File Uploads:  ON   
Session auto start:  OFF   
Session save path:  /tmp 
Short Open Tags:  ON   
Output Buffering:  OFF   
Open basedir:  /usr/home/families/:/usr/lib/php:/usr/local/lib/php:/tmp 
Display Errors:  ON 
XML enabled:  Yes 
Zlib enabled:  Yes 
Disabled Functions:  none 

Configuration File:  <?php
$mosConfig_MetaAuthor = '1';
$mosConfig_MetaDesc = 'Joomla - the dynamic portal engine and content management system';
$mosConfig_MetaKeys = 'Joomla, joomla';
$mosConfig_MetaTitle = '1';
$mosConfig_absolute_path = '/usr/home/families/public_html/joomla';
$mosConfig_admin_expired = '1';
$mosConfig_allowUserRegistration = '1';
$mosConfig_back_button = '1';
$mosConfig_cachepath = '/usr/home/families/public_html/joomla/cache';
$mosConfig_cachetime = '900';
$mosConfig_caching = '0';
$mosConfig_db = 'xxxxxx'
$mosConfig_dbprefix = 'jos_';
$mosConfig_debug = '0';
$mosConfig_dirperms = '0777';
$mosConfig_editor = 'tinymce';
$mosConfig_enable_log_items = '0';
$mosConfig_enable_log_searches = '1';
$mosConfig_enable_stats = '1';
$mosConfig_error_message = 'This site is temporarily unavailable.
Please notify the System Administrator';
$mosConfig_error_reporting = '-1';
$mosConfig_favicon = 'favicon.ico';
$mosConfig_fileperms = '0777';
$mosConfig_fromname = 'Website van Birgit en Pieter';
$mosConfig_frontend_login = '1';
$mosConfig_frontend_userparams = '1';
$mosConfig_gzip = '0';
$mosConfig_helpurl = 'http://help.joomla.org';
$mosConfig_hideAuthor = '0';
$mosConfig_hideCreateDate = '0';
$mosConfig_hideEmail = '0';
$mosConfig_hideModifyDate = '0';
$mosConfig_hidePdf = '0';
$mosConfig_hidePrint = '0';
$mosConfig_hits = '1';
$mosConfig_host = 'xxxxxx'
$mosConfig_icons = '1';
$mosConfig_item_navigation = '1';
$mosConfig_lang = 'english';
$mosConfig_lifetime = '900';
$mosConfig_link_titles = '0';
$mosConfig_list_limit = '30';
$mosConfig_live_site = 'http://www.familiestigter.nl/joomla';
$mosConfig_locale = 'nl_nl';
$mosConfig_mailer = 'mail';
$mosConfig_mailfrom = 'beepluspee@familiestigter.nl';
$mosConfig_ml_support = '0';
$mosConfig_multipage_toc = '1';
$mosConfig_offline = '0';
$mosConfig_offline_message = 'Deze site is tijdelijk niet online.
U kunt het later nog eens proberen.';
$mosConfig_offset = '0';
$mosConfig_offset_user = '1';
$mosConfig_pagetitles = '1';
$mosConfig_password = 'xxxxxx'
$mosConfig_readmore = '1';
$mosConfig_secret = 'D8ZdiNMDhFQ4uggF';
$mosConfig_sef = '0';
$mosConfig_sendmail = '/usr/sbin/sendmail';
$mosConfig_session_life_admin = '1800';
$mosConfig_session_type = '0';
$mosConfig_shownoauth = '0';
$mosConfig_sitename = 'Birgit en Pieter';
$mosConfig_smtpauth = '0';
$mosConfig_smtphost = 'localhost';
$mosConfig_smtppass = '';
$mosConfig_smtpuser = '';
$mosConfig_uniquemail = '1';
$mosConfig_user = 'xxxxxx'
$mosConfig_user = 'xxxxxx'
$mosConfig_vote = '0';
setlocale (LC_TIME, $mosConfig_locale);
?> 
 

Re: Batch upload error and single file upload error
« Reply #7 on: March 01, 2007, 09:53:44 PM »
It looks like a problem with the open_basedir restrictions.
I modified the img.utils.php and attached it to this post.
Can you overwrite the old img.utils.php with this one (it's in /joomla/administrator/components/com_rsgallery2/includes/img.utils.php).

Then try the ZIP-upload and the single file upload again.
Post the screenshots of the errors in here again.

We will find your problem :)


[attachment no longer available]
Ronald Smit
Retired RSGallery2 Developer
Creator of the original RSGallery component
FAQ|Known issues


Re: Batch upload error and single file upload error
« Reply #9 on: March 01, 2007, 10:22:35 PM »
OK,

It seems the tmp directory where the uploaded files are stored is somehow not within the basedir restrictions.
Therefor the move_uploaded_file command says it is not allowed to move files from that location to your gallery. This is something only your host can fix.
The error message contradicts the settings you sent me so that is confusing for me, as these lines:
Code: [Select]
Session save path:  /tmp
......
Open basedir:  /usr/home/families/:/usr/lib/php:/usr/local/lib/php:/tmp 
suggest the tmp dir is within the basedir restrictions where this line
Code: [Select]
Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/var/tmp/phpHco4YP) is not within the allowed path(s): (/usr/home/families/:/usr/lib/php:/usr/local/lib/php:/tmp) in /usr/home/families/public_html/joomla/administrator/components/com_rsgallery2/includes/img.utils.php on line 281
suggests it is not. Notice the var/tmp instead of just /tmp.(that could be it)

You might want to show this to your hosting provider.

Another thing that might be wrong is buggy size checking.
Can you try a really small ZIP-file, let's say not more than 512 kB (2 small images).
I also attached a new version of img.utils.php with proper size checking. Please upload that before doing the ZIP-upload.

Good luck,




[attachment no longer available]
Ronald Smit
Retired RSGallery2 Developer
Creator of the original RSGallery component
FAQ|Known issues

*

Offline Daniel Tulp

  • ****
  • 1.870
  • Search search search before posting please
    • design.danieltulp.nl
Re: Batch upload error and single file upload error
« Reply #10 on: March 02, 2007, 12:23:43 AM »
it could also be that you do not have permissions to use /tmp by your host, please make sure you have the correct permissions to use the /tmp dir
RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl

Re: Batch upload error and single file upload error
« Reply #11 on: March 03, 2007, 01:05:35 PM »
I've sent an e-mail to my hosting provider. I let you know when everything is fixed.

I also tried to upload again with the new img.utils.php , and a small zip file, but that did not work either.