Elxis CMS Forum
Support => General => Topic started by: alex1976rm on December 13, 2010, 13:51:22
-
Hi,
I'm new user.
I've move my web site from old server to new server (VPS linux).
My Elxis CMS version is 2009.0
The problem is:
when I open Media manager, in admin backend, after to pushed the button for enable thumbnail view, I don't view a thumbnails for any images and any format (png, jpg, gif).
I've tested to change permission, for all files and folders, to 777 but it not work!!
Please, can help me, someone?
Thanks
Alex
-
If you have moved to new server, maybe you should check who is the owner of files? Or simplly do chown -R you:yourgroup path/to/public_html
-
Thanks Ivan,
I have tried your solution but it don't work.
I have also tried a new installation of elxis 2009.2 but it doesn't work and I have same problem, therefore the problem is the server.
I believe that the problem is in the configuration of the file php.ini but I don't understand what parameter is essential for the correct operation of the component media manager of elxis cms.
I have apply all policy in pre-install document but nothing.
Do you have some idea?
I have attach a print screen with my problem.
[attachment deleted by admin]
-
Elxis media manager uses PHP's gd library to create the thumbnails. gd, by default is enabled in all servers but, who knows, it might not be in your case. Check your phpinfo page (available from Elxis administration menu) for gd support. If gd is fine, then you can proceed like this:
1. Check your error.log, normally you should have an error telling you why the thumbnail can not be generated.
2. As Ivan told you, check permissions/owner of the thumbnail generator file:
administrator/components/com_media/inc/thumb.php
If you run PHP as SUPHP permissions of files should be 644 and of folders 755. Also the owner should be correct. If not you will get error 500.
-
Thanks datahell,
this is the values of my phpinfo page:
gd
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XPM Support enabled
XBM Support enabled
So, GD version is 2 even if into folder /usr/lib/php/modules the file name is gd.so and not gd2.so but I don't think that this is a problem.
1) I don't find the file error.log but into /administrator/logs there are only 2 files adodb_error.log and php_log.log
both files are empty. Is it rigth?
2) I don't find any command or function similar to chmod or chown into file administrator/components/com_media/inc/thumb.php
How do I do?
I've created a new folder and it has 777 permission, I've uploaded a jpg file and it has 644 permission.
With SSH, I verified owner and group for folder and file, just created and both have the same owner and group: apache
I hope that my information are useful for someone to help me.
-
I mean your server's error log. If you have a control panel like cpanel you can access the error log from it.
Visit this page: http://www.example.com/administrator/components/com_media/inc/thumb.php
Replace (example.com with your own domain)
If you don't get an error 500 you are ok with the permissions (normally you should see a white page).
An other idea to find out what is going on is to go to the media manager page, do right click -> view source and see the thumbnails "src" value. As there is an error then maybe instead of the thumbnail path there will be an error string. <img src="xxxxxx" />
-
My control panel is Plesk 8.3 and my server is VPS linux with OS CentOS, but I've tryed your link with my domain and I view only blank page without error 500
I 've tryed your idea and this is my view source:
<img
src="http://www.example.com/administrator/components/com_media/inc/thumb.php?img=/var/www/vhosts/example.com/httpdocs/images/picture-1.jpg"
onmousedown="mm_loadfile(this, 'picture-1.jpg', '15', 'fte', 'file'); mm_fullurl('http://www.example.com/images/picture-1.jpg')"
id="file"
ondblclick="mm_todownload()"
title="picture-1.jpg"
spec="fte"
/>
The path is OK, are there some errors ?
-
Check the error log at plesk. There will be an error somewhere...
If you can nt solve this then send me a personal message and provide me login details+ftp access to your site to see what's going on.
-
Thanks :)
I've found error log into plesk but there is only one error that repeater:
[Tue Dec 14 18:31:05 2010] [error] [client xxx.xxx.xxx.xxx] PHP Warning: Cron file access error! Check permissions to write. in /var/www/vhosts/example.com/httpdocs/includes/floodblocker.class.php on line 201
I think that it's refere about other question.
I belive that the problem is a bad configuration for CGI or Fast-GCI
I'm searching a guide to install suPHP or configure CGI because I think that the problem is a file permission with owner user Apache.
-
FloodBlocker might cause you this problem.
Go to Elxis administration -> Tools -> FloodBlocker and disable FloodBlocker. Check if the problem was solved.
-
I've disable FloodBlocker but I've the same problem.
-
I need administration/ftp access to your site to be able to help you. We tried the most obvious solutions but they did not worked so I must debug Elxis in your site to find out what is the problem.
-
Thanks but I would prefer to try alone still because I would want to learn it.
If you want, could you say me as the way to enable debug modeand where are the results or the logs that I will to see?
-
I mean debug the source code line-by-line, not just enable elxis debug, which is useless in your case.
Debug is something that's needs experience, knowledge and it is not a standard procedure.
I am sorry, I can not help you more via the forum.
-
I post the solution that "datahell" have suggest me and I hope that this information can help other people:
Fixed!
The problem was that Elxis does not like the word "http" in the image's absolute path as it considers it as an external file (URL) and not a local path.
/var/www/vhosts/example.com/httpdocs/images/save_f2.png
I changed the source code in order to perform this check on the begin of the path and not everywhere in the path. I will also update the Elxis release with this improvement.
Thanks :)
-
No, thumbnail generation should work fine regardless if php runs as fastcgi, mod_php, suphp, etc. Don't re-install PHP for that.