Postings

You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).

Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!

Cant load jQuery if site installed in subfolder

  • qvsoft
  • qvsoft's Avatar Topic Author
  • New Member
  • New Member
More
IP: 58.187.27.16 13 years 10 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.
More
IP: 207.229.131.129 13 years 10 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.
  • qvsoft
  • qvsoft's Avatar Topic Author
  • New Member
  • New Member
More
IP: 58.187.27.16 13 years 10 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>
More
IP: 207.229.131.129 13 years 10 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.
More
IP: 207.229.172.231 13 years 7 months 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
  • qvsoft
  • qvsoft's Avatar Topic Author
  • New Member
  • New Member
More
IP: 113.178.60.61 13 years 7 months ago #2049 by qvsoft
Great!
Thank so much for the best extension!