Upload image error

More
15 years 3 months ago #11286 by piotr_cz
Replied by piotr_cz on topic Upload image error
Hi everybody.
Those changes of phpthumb.class.php worked for me:

Define path to Joomla installation
line 18 - add:
Code:
if (!defined('JPATH_SITE')) define( 'JPATH_SITE', realpath(dirname(__FILE__).'/../../../..' ));

Set document root as Joomla installation
line 77 - change to
Code:
var $config_document_root = JPATH_SITE;

Prioritize custom document root over server configuration
line 221 - change to:
Code:
$this->config_document_root = (@$this->config_document_root ? $this->config_document_root : $_SERVER['DOCUMENT_ROOT']);

The thing is that phpthumb is not returning correct path when installed on a subdomain. $_SERVER is not pointing to subdomain, rather to /www. Strange thing is that I have it installed as a helper in PDW File Browser where it works fine without hacks (same phpthumb files), no idea why.

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

More
15 years 3 months ago #11324 by micker
Replied by micker on topic Upload image error
interesting return !
do an mp on kemcd or yopyop to have more information
regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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