Please login or register.
Login with username, password and session length
May 25, 2013, 12:30:45 PM
News: We're back! And here to stay!
collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Recent Posts

you must provide a description by kasix
[Yesterday at 11:48:59 PM]


Fatal error: by mailtobala04
[May 17, 2013, 04:36:20 PM]


Backend Items (Images) don't work by bauchinj
[May 15, 2013, 04:18:55 PM]


Permissions issue: a user can upload images in other user galleries by guidocx84
[May 11, 2013, 05:17:44 PM]


Payment after loggin by mirjam
[May 11, 2013, 03:02:56 PM]


image titles without dashes by mirjam
[May 11, 2013, 02:57:48 PM]


Batch Upload Fails by mirjam
[May 11, 2013, 02:52:08 PM]


Slow Gallery with many Photos by mirjam
[May 11, 2013, 02:49:36 PM]

Advertisement


Pages: [1]   Go Down

Author Topic: Batch Upload Goes Nowhere  (Read 643 times)

Offline scene66

  • Newbie
  • *
  • Posts: 23

Batch Upload Goes Nowhere
« on: May 01, 2012, 02:21:43 PM »
Hi

On Batch Upload, the zipped gallery is selected (1Mb), the upload limit is 33Mb but the resulting screen says Step 2 and nothing else (screenshot).

PHP Version    5.2.17
Web Server    Apache
WebServer to PHP Interface    cgi
Joomla! Version    Joomla! 2.5.4 Stable

Help appreciated.

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: Batch Upload Goes Nowhere
« Reply #1 on: May 01, 2012, 04:23:37 PM »
Thanks for the screenshot: this should show the images in the zipfile. Please try the attached zipfile and note that it shouldn't be a zipped folder structure, just images zipped together.
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.

Offline scene66

  • Newbie
  • *
  • Posts: 23

Re: Batch Upload Goes Nowhere
« Reply #2 on: May 01, 2012, 10:56:31 PM »
Thank you. The test zip uploaded and worked as it should — the first time.

I then tried to replicated my test original files in photoshop to match your test files>
rgb, png, 50k size, all in a zipped folder but couldn't get a successful upload — same error as originally reported.

I then tried to delete all files (your test images and one I had manually loaded). The two test files wwere deleted however the system wouldn't delete the earlier test image. That returned an error:
Fatal error: Class 'rsgImagesItem' not found in /home/scenestr/public_html/administrator/components/com_rsgallery2/includes/img.utils.php on line 416

I then re-uploaded your test files which worked again, however now they cannot be deleted. Trying to delete them returns a an error:
500 - and error has occurred

I have tried deleting the component and reinstalling it, which occurs successfully, but the test (ghost?) image I can't delete remains.

Finally, after this reinstall, when I try and upload your zipped test folder, I can progress fully to the 'items uploaded successfully' advice however the items don't exist and the gallery remains empty.

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: Batch Upload Goes Nowhere
« Reply #3 on: May 02, 2012, 11:38:29 AM »
Thank you. The test zip uploaded and worked as it should — the first time.
So that's good, something is working...

I then tried to replicated my test original files in photoshop to match your test files>
rgb, png, 50k size, all in a zipped folder but couldn't get a successful upload — same error as originally reported.
Allowed image types are jpg, jpeg, gif and png. However, other image types should result in an error message.
As for the zip file: don't zip a folder, but the contents of a folder (without subfolders).

Fatal error: Class 'rsgImagesItem' not found in /home/scenestr/public_html/administrator/components/com_rsgallery2/includes/img.utils.php on line 416
At the point were you get this error message, the original, thumb and display images already have been deleted. There is only the database entry left to delete. My first guess with this error is that perhaps one or more files aren't installed, and that reinstalling might help. You did that.

I then re-uploaded your test files which worked again, however now they cannot be deleted. Trying to delete them returns a an error:
500 - and error has occurred
Can you turn Joomla's Debug on (Backend > Site > Global Configuration > System > Debug System = Yes) and set Error Reporting to Maximum (Backend > Site > Global Configuration > Server > Error Reporting = Maximum) to see what more information you get on the Error 500 message?

Additional questions
1 - Are you using SEF, if yes, only Joomla SEF (and then what is RSGallery2's advanced SEF option: Backend > Components > RSGallery2 > Control Panel > Configuration > tab: General, Setting: Advanced SEF) or what third party SEF?
2 - What is your MySQL version?
3 - Are you logged in as a Super Administrator?
4 - Did you upgrade to RSGallery2 3.1.0 or was it a new installation?
5 - Can you go to Backend > Components > RSGallery2 > Control Panel > Maintenance > Consolidate Database. That'll give you a list with all item "where something is not completely right", for example a missing display/original/thumb image or a missing database entry. For each line there is a link to try to 'solve' that problem. Does that help for any existing problems?
6 - What browser are you using?

A lot of questions for a strange problem...
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.

Offline scene66

  • Newbie
  • *
  • Posts: 23

Re: Batch Upload Goes Nowhere
« Reply #4 on: May 02, 2012, 03:09:09 PM »
Hello Mirjam

don't zip a folder, but the contents of a folder (without subfolders).
This fixed the format recognition issues and can now proceed to photo previews.

Upon UPLOAD from Stage 2 preview, the followinig werrors were returned:

Code: [Select]
Then upon UPLOAD, these errors are returned (debug):
500 - An error has occurred.
JDatabaseMySQLi::query: 1062 - Duplicate entry 'Backsliders.jpg' for key 'UK_name' SQL=INSERT INTO `gx8s3_rsgallery2_files` (`id`,`name`,`alias`,`descr`,`gallery_id`,`title`,`hits`,`date`,`rating`,`votes`,`comments`,`published`,`checked_out`,`checked_out_time`,`ordering`,`approved`,`userid`) VALUES ('','Backsliders.jpg','backsliders','','1','Backsliders','','2012-05-02 23:13:55','','','','1','','','2','','43')
Return to Control Panel

Call stack
#
Function
Location
1
JAdministrator->dispatch()
/home/scenestr/public_html/administrator/index.php:46
2
JComponentHelper::renderComponent()
/home/scenestr/public_html/administrator/includes/application.php:153
3
JComponentHelper::executeComponent()
/home/scenestr/public_html/libraries/joomla/application/component/helper.php:357
4
require_once()
/home/scenestr/public_html/libraries/joomla/application/component/helper.php:388
5
require_once()
/home/scenestr/public_html/administrator/components/com_rsgallery2/admin.rsgallery2.php:61
6
save_batchupload()
/home/scenestr/public_html/administrator/components/com_rsgallery2/options/images.php:32
7
imgUtils::importImage()
/home/scenestr/public_html/administrator/components/com_rsgallery2/options/images.php:773
8
JTable->store()
/home/scenestr/public_html/administrator/components/com_rsgallery2/includes/img.utils.php:240
9
JDatabase->insertObject()
/home/scenestr/public_html/libraries/joomla/database/table.php:608
10
JDatabaseMySQLi->query()
/home/scenestr/public_html/libraries/joomla/database/database.php:824
11
JError::raiseError()
/home/scenestr/public_html/libraries/joomla/database/database/mysqli.php:396
12
JError::raise()
/home/scenestr/public_html/libraries/joomla/error/error.php:251

I then re-uploaded your test files which worked again, however now they cannot be deleted. Trying to delete them returns a an error:
500 - and error has occurred
Can you turn Joomla's Debug on (Backend > Site > Global Configuration > System > Debug System = Yes) and set Error Reporting to Maximum (Backend > Site > Global Configuration > Server > Error Reporting = Maximum) to see what more information you get on the Error 500 message?
The error reporting returned:
Code: [Select]
Call stack
#
Function
Location
1
JAdministrator->dispatch()
/home/scenestr/public_html/administrator/index.php:46
2
JComponentHelper::renderComponent()
/home/scenestr/public_html/administrator/includes/application.php:153
3
JComponentHelper::executeComponent()
/home/scenestr/public_html/libraries/joomla/application/component/helper.php:357
4
require_once()
/home/scenestr/public_html/libraries/joomla/application/component/helper.php:388
5
require_once()
/home/scenestr/public_html/administrator/components/com_rsgallery2/admin.rsgallery2.php:61
6
removeImages()
/home/scenestr/public_html/administrator/components/com_rsgallery2/options/images.php:58
7
JError::raiseError()
/home/scenestr/public_html/administrator/components/com_rsgallery2/options/images.php:361
8
JError::raise()
/home/scenestr/public_html/libraries/joomla/error/error.php:251

As for the additional questions:
1. Yes, using sh404SEF and rsgallery advanced SEF is set to NO.

2. MYsql version 5.1.62

3 - Yes, logged in as a Super Administrator?

4 - This is a new installation? RSGallery2 3.1.0 - SVN 1061

5 - Can you go to ... Consolidate Database. Does that help for any existing problems?
Unfortunately not.

6 - Using Firefox, Safari and Chrome

Also, there are front-end errors for viewing at:
http://scenestr.com.au > SOCIAL PHOTOS > ADELAIDE (or BRISBANE or MELBOURNE).

Thanks again for your assistance.

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: Batch Upload Goes Nowhere
« Reply #5 on: May 03, 2012, 09:06:31 PM »
Some weird things are happening...

As for the images, you now have three images in your RSG2 directory and you seem to have entries without images (e.g. 01.jpg.jpg is not a thumbnail on your server, however, it shows up in the gallery. I was hoping that with the Maintenance-Consolidate you could remove such an entry (which I've done myself numerous times while testing different things).

I also get this error on your website where is seems that sh404sef is working hard on something and doesn't get it done within the memory limit (and that limit is high for I am used to, but perhaps shumisha from sh404sef might have a different experience?):
http://scenestr.com.au/1-01.html
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 76 bytes) in [...]/administrator/components/com_sh404sef/sh404sef.class.php on line 2694.


On the Error 500 you're getting:
JDatabaseMySQLi::query: 1062 - Duplicate entry 'Backsliders.jpg' for key ...
It seems that there is already in image with that name in the database. Normally RSGallery2 handles duplicate names. I've uploaded my "test images" over and over again with zip files, each time they have the same name, and I've never had a problem with that. At this point I don't understand why RSG2 isn't handling the duplicate file names.

What I'm hoping is that somehow with a specific set of circumstances things went really wrong. Since you seem to be "just" at a testing stage I would completely removed RSGallery2 from the system and then reinstall it. How to do that?
1. Uninstall RSGallery2 like you normally uninstall a Joomla component: Backend > Extensions > Install/Uninstall > Components > Select RSGallery2 and click Uninstall. This removes all the files.
2. Find the directory /JOOMLAROOT/images/rsgallery/ and remove this directory and its contents
3. Remove the RSGallery2 database tables, there are five of them: jos_rsgallery2_acl, jos_rsgallery2_comments, jos_rsgallery2_config, jos_rsgallery2_files and jos_rsgallery2_galleries (where I've taken "jos_" as a database prefix, which is gx8s3_ in your case, based on the error message). This can be done with phpMyAdmin or DBWebadmin or any other program your webhost offers.
4. Reinstall RSGallery2

It's always best to have a full backup ready of your website (files and database) before making (big) changes.

What I'm hoping is that this will get you started in the backend, being able to upload zipfiles (not containing folders, only containing images) and being able to remove items as well. Your database, php version etc. seem perfectly fine.
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.

Offline scene66

  • Newbie
  • *
  • Posts: 23

Re: Batch Upload Goes Nowhere
« Reply #6 on: May 04, 2012, 09:42:17 AM »
Some weird things are happening...

... I would completely removed RSGallery2 from the system and then reinstall it.
Bingo. The gallery is functioning as it should. Very happy with your detailed attention. Thank you.

I haven't been able to prevent the image name from publishing (screenshot). I have turned off just about every option but it persists. Is this possible?

Offline scene66

  • Newbie
  • *
  • Posts: 23

Re: Batch Upload Goes Nowhere
« Reply #7 on: May 04, 2012, 09:49:01 AM »
I haven't been able to prevent the image name from publishing (screenshot). I have turned off just about every option but it persists. Is this possible?
Please disregard. Have just noticed this topic is addressed elsewhere.
Pages: [1]   Go Up
 

anything