Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

file Cant load jQuery if site installed in subfolder

More
11 years 4 months ago #1515 by qvsoft
Hi,
jQuery easy does not work properly on the subfolder.
For example:
yourdomain.com/subfolder
If can not load jQuery, because jQuery path will not be replaced on this case.
So please check on this.

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

More
11 years 4 months ago #1516 by admin
Hello,
can you give me a live URL so I can check why this is not working?
I cannot really diagnose anything otherwise.
My versions of jQuery Easy are tested on sub folders and work just fine, so there is something specific about your configuration.
Thank you!

Olivier.

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

More
11 years 4 months ago #1520 by qvsoft
Hi,
It's not my site, it's my client's site( www.brain-objects.net/second-thought-waves/ ), now i don't have admin access anymore, but i have fixed it by replace this:
Line 539:
Replace:
$body = preg_replace('#JQEASY_JQLIB#', $this->_jqpath, $body, 1);
By:
$body = preg_replace('#/second-thought-waves/JQEASY_JQLIB#', $this->_jqpath, $body, 1);

If i don't replace it, the site will load
<script type="text/javascript">JQEASY_JQLIB</script>

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

More
11 years 4 months ago #1521 by admin
Thanks for posting your resolution.
This is rather strange behavior.
You are basically asking to replace
'/second-thought-waves/JQEASY_JQLIB' with '$this->_jqpath'
in
'<script type="text/javascript">JQEASY_JQLIB</script>'
where '/second-thought-waves' is not even present.
I'll see if somebody else has a comment on that.
Thanks again.

Olivier.

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

More
11 years 1 month ago #2048 by admin
Hello,
it has been a long time and I wanted to let you know I had finally figured out what went wrong and issued a fix (v1.4.2). I do apologise for not finding it sooner though.

Olivier.
The following user(s) said Thank You: qvsoft

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

More
11 years 1 month ago #2049 by qvsoft
Great!
Thank so much for the best extension!

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