Hi FLEXITeam, Hi all,
I have the same pb: I can't see thumbs in Flexi-Items (articles) in the backend.
In the frontend it works fine when a visitor is viewing the item, but no thumbs in edition mode (like in the backend).
My config :
Joomla 3.4.5
FLEXIcontent v3.0.9-2015_11_14 (v3.0.9-rc2)
Linux SME Server (based on a redhat)
My joomla installation is in a subdomain. So my absolute path of documentroot of this joomla install (/home/e-smith/files/ibays/
wm2v/html/) is not the same that the default root domain (/home/e-smith/files/ibays/
Primary/html/).
The permissions of the folders/files are good, owner is apache.
When I have the default install, with default params of flexi and phpthumb, I have PHP Warning (in the server logs) :
Code:
PHP Warning: realpath(): open_basedir restriction in effect. File(/home/e-smith/files/ibays/Primary/html) is not within the allowed path(s): (/home/e-smith/files/ibays/wm2v/:/tmp/:/usr/share/pear:/usr/share/pear-data/) in /home/e-smith/files/ibays/wm2v/html/components/com_flexicontent/librairies/phpthumb/phpThumb.config.php on line 40
So I have change the param of com_flexicontent/librairies/phpthumb/phpThumb.config.php to :
Code:
$PHPTHUMB_CONFIG['document_root'] = $_SERVER['DOCUMENT_ROOT'];
The above error no longer occurs.
But now I have the same type of error (open_basedir restriction) in this two lines :
Code:
[cuted but same error]
.../phpthumb.class.php on line 1105
.../phpthumb.class.php on line 1265
In the backend, when I update a item with a new image, with $PHPTHUMB_CONFIG = false; I have this message :
phpThumb() v1.7.13-201406261000
phpthumb.sourceforge.net
Error messages disabled.
edit phpThumb.config.php and (temporarily) set
$PHPTHUMB_CONFIG = false;
to view the details of this error
phpThumb() v1.7.13-201406261000 in file "phpthumb.class.php" on line 225
setSourceFilename(/home/e-smith/files/ibays/wm2v/html/components/com_flexicontent/uploads/capture-du-2015-10-19-223228-3.png) set $this->sourceFilename to "/home/e-smith/files/ibays/wm2v/html/components/com_flexicontent/uploads/capture-du-2015-10-19-223228-3.png" in file "phpthumb.class.php" on line 276
file_exists() = 0 in file "phpthumb.class.php" on line 1340
file_exists_ignoreopenbasedir() = 0 in file "phpthumb.class.php" on line 1341
is_file() = 0 in file "phpthumb.class.php" on line 1342
is_executable() = 0 in file "phpthumb.class.php" on line 1343
using ImageMagick path from `which convert` (/usr/bin/convert) in file "phpthumb.class.php" on line 1364
ImageMagick version checked with "convert --version" in file "phpthumb.class.php" on line 1405
ImageMagick convert --version says "Version: ImageMagick 6.7.2-7 2015-07-23 Q16 " in file "phpthumb.class.php" on line 1413
Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 924
$AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 930
$this->thumbnailFormat set to $this->config_output_format "png" in file "phpthumb.class.php" on line 941
$this->thumbnailFormat set to $this->f "png" in file "phpthumb.class.php" on line 948
$this->thumbnailQuality set to "90" in file "phpthumb.class.php" on line 958
resolvePath: /home/e-smith/files/ibays/wm2v/html/components/com_flexicontent/uploads/capture-du-2015-10-19-223228-3.png (allowed_dirs: Array
(
)
) in file "phpthumb.class.php" on line 1101
resolvePath: iteration, path=/home/e-smith/files/ibays/wm2v/html/components/com_flexicontent/uploads/capture-du-2015-10-19-223228-3.png, base path = in file "phpthumb.class.php" on line 1120
open_basedir: "/home/e-smith/files/ibays/wm2v/:/tmp/:/usr/share/pear:/usr/share/pear-data/" in file "phpthumb.class.php" on line 1087
resolvePath: stop at component 11 in file "phpthumb.class.php" on line 1136
resolvePath: stop at path=/home/e-smith/files/ibays/wm2v/html/components/com_flexicontent/uploads/capture-du-2015-10-19-223228-3.png in file "phpthumb.class.php" on line 1139
resolvePath: no match, returning null in file "phpthumb.class.php" on line 1141
$this->sourceFilename set to "" in file "phpthumb.class.php" on line 854
phpThumb() v1.7.13-201406261000
phpthumb.sourceforge.net
Error messages disabled.
edit phpThumb.config.php and (temporarily) set
$PHPTHUMB_CONFIG = false;
to view the details of this error in file "phpthumb.class.php" on line 4055
setCacheDirectory() starting with config_cache_directory = "" in file "phpthumb.class.php" on line 966
$this->config_cache_directory () is not a directory in file "phpthumb.class.php" on line 1002
SetCacheFilename() failed because $this->config_cache_directory is empty in file "phpthumb.class.php" on line 3409
starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3241
skipping GetImageSize() because $this->sourceFilename is empty in file "phpthumb.class.php" on line 3253
GetImageSize("") failed in file "phpthumb.class.php" on line 3284
$this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1513
ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1557
ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3291
SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3220
SetOrientationDependantWidthHeight() setting w="800", h="600" in file "phpthumb.class.php" on line 3236
EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3348
starting SourceImageToGD() in file "phpthumb.class.php" on line 3608
Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3679
$this->gdimg_source is still empty in file "phpthumb.class.php" on line 3731
ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3733
phpThumb() v1.7.13-201406261000
phpthumb.sourceforge.net
Error messages disabled.
edit phpThumb.config.php and (temporarily) set
$PHPTHUMB_CONFIG = false;
to view the details of this error in file "phpthumb.class.php" on line 4055
SourceImageToGD() failed in file "phpthumb.class.php" on line 356
I don't know what to change for resolve the 2 new errors. I'm stuck here.
[EDIT]
Don't understand why the message joomla/Flexi say "Error messages disabled." because my $PHPTHUMB_CONFIG = false;
When true, in the thumb zone I have in red the indicatioon to set it false.
And when false, I do not have anything in the thumb zone.
Please see this screenshot :
www.cjoint.com/doc/15_11/EKpmQppybYM_Capture-flexi-pb-thumb.png
[/EDIT]
If all this precisions can help you (and me
).
Many thanks.
Laurent