Can't Upload Images with v3.3.5-hotfix

More
3 years 11 months ago - 3 years 11 months ago #78642 by iamrobert
Hi,

For an image field I hit "apply and save" and it fails to upload.

YouTube of issue:


In console, there is a 500 error from this file:

http://localhost/iam/administrator/index.php?option=com_flexicontent&task=filemanager.uploads&6e477365d03a1ebb24a430a3a12e0bfc=1&fieldid=32&u_item_id=13

If I open the file I see the following message:
{"jsonrpc" : "2.0", "error" : {"code": status, "message": "Filename has invalid characters (or other error occured)"}, "data" : null}

Also - if I try to use the file uploader I get the same issue.

I opened a github issue - but realize it was before my upgrade and seems to work on a fresh install:
github.com/FLEXIcontent/flexicontent-cck/issues/982
Last edit: 3 years 11 months ago by ggppdk.

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

More
3 years 11 months ago - 3 years 11 months ago #78649 by iamrobert
I fixed it but not sure how.

I changed image.php to:
Code:
$img_link = htmlspecialchars(phpThumbURL( 'src=' . $img_link . '&w=' . $preview_thumb_w . '&h=' . $preview_thumb_h . '&zc=1&q=95&ar=x' . $f, ''.JUri::root().'components/com_flexicontent/librairies/phpthumb/phpThumb.php' ));

Then I changed my php version to 7.2 - and it could upload. Then I switched back to 7.3 and it seems to work.

Thanks again.
Last edit: 3 years 11 months ago by ggppdk.

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

More
3 years 11 months ago - 3 years 11 months ago #78650 by ggppdk
Hello

we are going to change the way we call the phpThumb
and that was the first change , i forgot the local testing path there !!

thanks, i will commit fix with

JUri::root(true) . '/components /...'
instead of ....
'/j3/components/....'


-- 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...
Last edit: 3 years 11 months ago by ggppdk.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.300 seconds
Save
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