Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Thumbnail Creation doesn´t work

  • Benjamin Rother
  • Benjamin Rother's Avatar Topic Author
  • Offline
  • New Member
More
16 years 10 months ago #10329 by Benjamin Rother
Thumbnail Creation doesn´t work was created by Benjamin Rother
Hi,
i am using SIG PRO for my new project and i have to say that´s a very well mambot!

But i have a problem with the creation of thumbnails, since i uploaded my project on the webserver. I get the following error:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. 
File(/images/stories/temp/19ce3c9cd14b7d3494a2b6dcef23c6b3jpg) is not within the allowed path(s):
(/var/www/web125/html/:/var/www/web125/phptmp/:/var/www/web125/files/:/var/www/web125/atd/)
in /var/www/web125/html/mo187_2/mambots/content/plugin_jw_sigpro.php on line 285
I don´t have this problem on my local XAMPP server.
The files i uploaded, are a copy of my local system.

I hope somebody can help me!

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

  • Benjamin Rother
  • Benjamin Rother's Avatar Topic Author
  • Offline
  • New Member
More
16 years 10 months ago #10330 by Benjamin Rother
Replied by Benjamin Rother on topic Re: Thumbnail Creation doesn´t work
I think i have found the problem. The Script doesn´t add the DocumentRoot to the path of the tempfolder.I added the $mosConfig_absolute_path in line 285.
But it seems not to be the whole solution.

Who can help me?

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

  • Benjamin Rother
  • Benjamin Rother's Avatar Topic Author
  • Offline
  • New Member
More
16 years 10 months ago #10331 by Benjamin Rother
Replied by Benjamin Rother on topic Re: Thumbnail Creation doesn´t work
I was on the right way. But my FTP program didn´t update the file correctly.

The solution:
Open the plugin_jw_sigpro.php and go to line 285.
if (file_exists($tempfolder.md5($_images_dir_.$name).$format) && filemtime($tempfolder.md5($_images_dir_.$name).$format) + $cache_expire_time * 60 > time()) {
Add the DocumentRoot and change the line to:
if (file_exists($mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).$format) && filemtime($mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).$format) + $cache_expire_time * 60 > time()) {

That´s it.

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

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
16 years 10 months ago #10332 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: Thumbnail Creation doesn´t work
You can check out also this sticky post!
forum.joomlaworks.net/index.php?topic=2931.msg11214#msg11214

;)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum