help for phpthumb troubleshooting

More
10 years 6 months ago #47845 by ggppdk
Hello

make a small php script:
Code:
<?php echo $_SERVER['DOCUMENT_ROOT'];

it should print your document root with no "aliases"

otherwise phpThumb will not work properly


Finally, you can try to manually set the variable:
$PHPTHUMB_CONFIG




edit file
components/com_flexicontent/libraries/phpthumb/phpthumb.config.php
comment out the line:
Code:
$PHPTHUMB_CONFIG['document_root'] = realpath ...

and add a new line like:
Code:
$PHPTHUMB_CONFIG['document_root'] = '/dir1/dir2/public_html'; ...
what ever is the correct path for your web-site


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
10 years 6 months ago #47859 by HillWoody
Hello,

similar issue here: the root directory at some point seems to be not recognized by phpthumb.

This happened after moving my site to another host (managed server), where the document root path "public_html" is a softlink to /usr/www/users/<username>.

I checked the real document root path and put it into $PHPTHUMB_CONFIG in phpThumb.config.php, tried some variations (relative / absolute path), but no success.

SEF and URL rewrite is turned off, and everything else seems to work as before.

So I don't know what to do. Thankful for advice!

(J! 3.3.1, FC r1910)


EDIT:
Oops - it's working now :P – cannot say why.
Might be this had to do with conflicting DNS entries during domain transfer, which is completed now.

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

More
10 years 6 months ago #47874 by esinet
Thanks for your help.
And happy to see that some problems are resolved ;)
i changed all i can in the phpthumb.config.php without issue ...
at each try, it seems that the adress of images src is wrong ...
all is ok for
http://editice1/components/com_flexicon ... b.php?src=
but after src=, the url is wrong ...
i don't find where this url is build ...
an idea ?
Thanks a lot

Joomla 3.9.14 /3.6.5 FLEXIcontent v 3.3.1.6

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

More
10 years 6 months ago #47916 by ggppdk
Hello

please tell us what the url is

e.g.
is it universal module
with
a. "extract image from description"
or
b. using image field ???


e.g.
it is blog template
with
a. "extract image from description"
or
b. using image field ???


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
10 years 6 months ago #47940 by esinet
in universal module and blog,
with image extract of description

I changed value by image field without success.

Joomla 3.9.14 /3.6.5 FLEXIcontent v 3.3.1.6

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

More
10 years 6 months ago #47953 by ggppdk
Hello

i think it is a similar problem

post a link to see it in the browser (or send link via a PM)

an example
1. which path appears after src=
2. and which is the correct path?

i think proper way is to fix your server configuration and not hack files for fixing a server configuration issuer



please note that we don't see a bug here for v2.1.3/v2.2.0
if the image URLs inside the description of your articles should be relative and phpThumb will handle them correctly


-- you may send me a PM to look at this, but note there is probably no bug to fix, here just want to look at it since we may be missing something


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.517 seconds
Save
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