Jump to content

(Solved) I got Fatal Error when i trie to regenerate thumbnail


Recommended Posts

If you get Fatal Error when you try to regenerate the thumbs.... most likely you don`t have installed GD libraries or they are not activated



I do not think it`s prestashop related.... maybe it`s got something about my server...but i do not kno0w what..


Warning: scandir(/home/mobila-online/public_html/img/c/) [function.scandir]: failed to open dir: Permission denied in /home/mobila-online/public_html/admin123/tabs/AdminImages.php on line 172

Warning: scandir() [function.scandir]: (errno 13): Permission denied in /home/mobila-online/public_html/admin123/tabs/AdminImages.php on line 172

Warning: Invalid argument supplied for foreach() in /home/mobila-online/public_html/admin123/tabs/AdminImages.php on line 173

Warning: scandir(/home/mobila-online/public_html/img/c/) [function.scandir]: failed to open dir: Permission denied in /home/mobila-online/public_html/admin123/tabs/AdminImages.php on line 179

Warning: scandir() [function.scandir]: (errno 13): Permission denied in /home/mobila-online/public_html/admin123/tabs/AdminImages.php on line 179

Warning: Invalid argument supplied for foreach() in /home/mobila-online/public_html/admin123/tabs/AdminImages.php on line 180

Fatal error: Call to undefined function imagecreatefromjpeg() in /home/mobila-online/public_html/images.inc.php on line 210

Link to comment
Share on other sites

[root@roxymob ~]# yum remove php-gd
Loaded plugins: fastestmirror, priorities
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package php-gd.x86_64 0:5.2.10-1.el5.centos set to be erased
--> Processing Dependency: php-gd for package: php-pear-Image-Color
--> Running transaction check
---> Package php-pear-Image-Color.noarch 0:1.0.3-1.el5 set to be erased
--> Processing Dependency: php-pear(Image_Color) >= 1.0.0 for package: php-pear-Image-Canvas
--> Running transaction check
---> Package php-pear-Image-Canvas.noarch 0:0.3.1-1.el5 set to be erased
--> Processing Dependency: php-pear(Image_Canvas) >= 0.3.0 for package: php-pear-Image-Graph
--> Running transaction check
---> Package php-pear-Image-Graph.noarch 0:0.7.2-4.el5 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
php-gd x86_64 5.2.10-1.el5.centos installed 362 k
Removing for dependencies:
php-pear-Image-Canvas noarch 0.3.1-1.el5 installed 248 k
php-pear-Image-Color noarch 1.0.3-1.el5 installed 47 k
php-pear-Image-Graph noarch 0.7.2-4.el5 installed 1.2 M

Transaction Summary
================================================================================
Install 0 Package(s)
Update 0 Package(s)
Remove 4 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : php-gd 1/4
Erasing : php-pear-Image-Color 2/4
Failed loading /usr/lib64/php/modules/xdebug.so: /usr/lib64/php/modules/xdebug.so: undefined symbol: alloc_globals
PHP Warning: PHP Startup: json: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: radius: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
Erasing : php-pear-Image-Graph 3/4
Failed loading /usr/lib64/php/modules/xdebug.so: /usr/lib64/php/modules/xdebug.so: undefined symbol: alloc_globals
PHP Warning: PHP Startup: json: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: radius: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
Erasing : php-pear-Image-Canvas 4/4
Failed loading /usr/lib64/php/modules/xdebug.so: /usr/lib64/php/modules/xdebug.so: undefined symbol: alloc_globals
PHP Warning: PHP Startup: json: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: radius: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0

Removed:
php-gd.x86_64 0:5.2.10-1.el5.centos

Dependency Removed:
php-pear-Image-Canvas.noarch 0:0.3.1-1.el5
php-pear-Image-Color.noarch 0:1.0.3-1.el5
php-pear-Image-Graph.noarch 0:0.7.2-4.el5

Complete!
[root@roxymob ~]#



What to do ? Remove php and try to install it over a gain ?

Link to comment
Share on other sites

×
×
  • Create New...