[Solved] Simple Image Gallery Uploader Problem

More
13 years 7 months ago - 12 years 11 months ago #26354 by victorio404
Since FC r1316 the field plugin "FLEXicontent - Simple Image Gallery Uploader" stopped working - there is no error displayed when saving, but the field is no longer uploading the zip file and not creating the folder as before.
I know it is a 3-rd party plugin and the developer site is no longer there, but can you help me make the plugin work again please?
There should be some change in r1316 that makes the difference.

Attached the plugin below.
Last edit: 12 years 11 months ago by victorio404.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #26376 by ggppdk
Will look into this


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #26441 by ggppdk
In your administrator/components/com_flexicontent/models/parentitemclass.php
Replace:
Code:
$result = FLEXIUtilities::call_FC_Field_Func($fieldname, 'onAfterSaveField', array( $field, &$postvalue, &$files[$field->name] ));
with
Code:
$result = FLEXIUtilities::call_FC_Field_Func($fieldname, 'onAfterSaveField', array( $field, &$postdata[$field->name], &$files[$field->name] ));

AND use these update files:[attachment=0:hsenifhh]<!-- ia0 -->sigalleryuploader.zip<!-- ia0 -->[/attachment:hsenifhh]


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #26512 by victorio404
After i have made the changes - now on Save Item there is an error: "Please set a gallery name for field: Upload More Photos Archive file was not extracted".
The gallery name is set, but it seems it is not being processed...

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #26564 by victorio404
I have just tested on a test installment and it seems to work. Even gives me confirmation on upload: "FIELD Upload Photos: Extracted 5 image files into gallery folder images/stories/001
Item saved"
So far everything else is working ok. :)
Thanks!

PS: is it normal to have this warning on first save on each item after the update: "Original content item was IGNORED and RESET because item language is site's default language"?
It's showing only on first save and doesn't seem to changes anything.

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #26570 by ggppdk

"Original content item was IGNORED and RESET because item language is site's default language"

This should appear only if you set this form field,

You say it appears on first save, it poses no problem but it should not appear because this case is checked (id = 0)

Have you modified any core files?
Is it in front-end and you have an override of the item edit form?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #26578 by victorio404
It is in the backend. Haven't changed any core files since the update to the latest flexicontent - it replaces all core file on update right?
There is no override of the item edit form too.

It appears when I open an old item and save it, but only the first time. On second save - no such message.

Now i noticed - when press New Item i got error:
"500 - An error has occurred!

getExtrafields(): Cannot get type_id from item or typeid from HTTP Request"

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #26579 by ggppdk
Yes it's the changes i have mentioned, that were made to the items model, it works in J2.5 but it got broken in J1.5.

Try this temporary fix:

Please open
administrator/components/com_flexicontent/models/parentitemclass.php
and comment out the line
Code:
if (!$typeid) JError::raiseError(500, __FUNCTION__.'(): Cannot get type_id from item or typeid from HTTP Request');
by placing a double slash // in front of the line

and a few lines below
Code:
.' WHERE ftrel.type_id='.$typeid
with
Code:
.' WHERE (ftrel.type_id='.$typeid.' || fi.iscore=1)'

And in components/com_flexicontent/classes/flexicontent.fields.php
replace line (about 764)
Code:
if ($field->iscore && !isset($fdata[$tindex][$field->name])) {
with
Code:
if ($type_id && $field->iscore && !isset($fdata[$tindex][$field->name])) {


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #26581 by victorio404
Now i get "Parse error: syntax error, unexpected '=' in /var/www/vhosts/website.com/httpdocs/administrator/components/com_flexicontent/models/parentclassitem.php on line 2686"
when opening item or new item with simple errors on on Joomla configuration.

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #26606 by ggppdk
I have made a nightly build of r1367 because r1365 had a couple of important bugs in item model

NOTE, there has been ITEM Model and ITEM edit form changes so be sure to test Item Edit Form.

For J1.5:
flexicontent.googlecode.com/file ... ild.tar.gz
For J2.5:
flexicontent.googlecode.com/file ... ybuild.zip

Consider this version test only, although it has various bug fixes and improvements, something may have been broken


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save