phpthumb error on uploading image

More
7 years 11 months ago #61818 by ggppdk
Hello

it is good to update Joomla

about upgrading FLEXIcontent see here, (about increasing upload limit):
www.flexicontent.org/documentation/faq/7...ver-limitations.html


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

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

More
7 years 11 months ago #61821 by hervemlam
I added a .htaccess file with this line only (just to try):
php_value upload_max_filesize 15M

...and got a 500 Internal Server Error.
Is there a specific syntax to add a php_value to .htaccess?
I can't find it anywhere.

HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5

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

More
7 years 11 months ago - 7 years 11 months ago #61833 by ggppdk
Hello

some server do not allow to change this via .htaccess

in such a case you need to use file:
php.ini
Code:
upload_max_filesize=15M post_max_size=15M max_input_time=300 max_execution_time=120 default_socket_timeout=120 max_input_vars=5000

in some servers, you may have to create 1 more php.ini file :
joomlaFolder/administrator/php.ini

but usually editting this should be enough to apply to all subfolders:
joomlaFolder/php.ini


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

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

More
7 years 11 months ago - 7 years 11 months ago #61852 by hervemlam
Hello,

Thanks for you answer.

What do you mean with joomlaFolder?
Is it mySite/libraries/joomla? (See screenshot.)


If so, there is no administrator folder inside.

Do I have to add a php.ini in mySite/libraries/joomla?

Good night.
HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5
Attachments:
Last edit: 7 years 11 months ago by hervemlam.

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

More
7 years 11 months ago #61862 by ggppdk
Hello

i meant the TOP level (Root) joomla folder


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

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

More
7 years 8 months ago - 7 years 8 months ago #63619 by kath
in case it helps someone: i had a similar problem (only when hosted at strato.de), solved mine like this:
1) open /components/com_flexicontent/librairies/phpthumb/phpThumb.config_OVERRIDE.php
2) temporarily set $ PHPTHUMB_CONFIG [ ' disable_debug ' ] = false to see the debug result by removing line comment.
3) find ~'document_root', copy it's value.
3 a) in my case, the joomla-subfolder was missing here
4) set $ PHPTHUMB_CONFIG [ ' disable_debug ' ] back to true by re-adding line comment "//".
5) near "$ PHPTHUMB_CONFIG [ ' document_root ' ] = " set the correct path: in my case: the previously copied website-path ."/".<joomla_root_folder>
6) voilá: thumbnail got generated without error.

ps: remove the spaces in the $ PHPTHUMB_CONFIG - vars. I had to put them in in order to prevent this forum-editor to alter my text.
Last edit: 7 years 8 months ago by kath.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.312 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