Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Ajax elements don't work in stream, etc

10 years 1 month ago
  • Sander's Avatar
    Topic Author
  • Sander
  • Offline
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Licenses:
JomSocial Active

Hi,

I've upgraded to Jomsocial 4.01. But now none of the Ajax elements work. When looking at the Javascript console I get the following errors.

Uncaught SyntaxError: Unexpected token ILLEGAL
www.foedies.com/:1128 Uncaught ReferenceError: joms is not defined

Also I can't add something to the stream, because the box is invisible.

How can I fix this?

Regards,
Sander

ps: I have multiple websites with this install. Same issue appears there.

10 years 1 month ago
Licenses:

Hi Sander,

your site using CDN or cloudflare? if yes, please turned off first, and try again.
let me know the result.

Regards

10 years 1 month ago
  • Sander's Avatar
    Topic Author
  • Sander
  • Offline
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Licenses:
JomSocial Active

Hi Albertus,

I have Cloudflare running. I paused it for now and now the Ajax elements work. Can I fix this?

I can't imagine that you can't use CDN in combination with Jomsocial or a CDN. My site hosted on Siteground. Maybe that helps.

Regards.

Sander

10 years 1 month ago
Licenses:

Hi Sander,

this is complicated issue related with javascript compressing, by default jomsocial already using compressing javascirpt. but CDN or cloudflare compress it again.

Need much time for this. let see what can our developer do about this.

Regards

10 years 1 month ago
  • Sander's Avatar
    Topic Author
  • Sander
  • Offline
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Licenses:
JomSocial Active

Hi Albertus,

Thanks for the answer. I'm not the only client working with Cloudflare or a CDN right? :)

Can you give me an ETA on when this will be fixed?

Regards,

Sander

10 years 1 month ago
Licenses:

Hi Sander,

cloudflare or CDN not perfect, sometime they not compatible with some scripts.

I cant give you ETA, developer still investigating it.

Regards

10 years 1 month ago
  • Sander's Avatar
    Topic Author
  • Sander
  • Offline
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Licenses:
JomSocial Active

Hi,

I'm running into the same problem, but bow without Cloudflare. When trying to approve a friend request I also get this error:

loader.js:1 Uncaught SyntaxError: Unexpected token ILLEGAL
2pending-my-approval.html:941 Uncaught ReferenceError: joms is not defined

Why does this happen also without Cloudflare? I don't have any caching on and no other compression. Only Gzip on Joomla Core files.

Hope you can help me out.

Regards,

Sander

10 years 1 month ago
Licenses:

Hi Sander,

I found the issue. the loader.js is broken, dont know why.

http://[yoursite domain]/components/com_community/assets/release/js/loader.js
you can compare it with:
www.jomsocial.com/components/com_communi...release/js/loader.js

unzip this file:

This attachment is hidden for guests.
Please log in or register to see it.

and put it at
[joomla site root]/components/com_community/assets/release/js/loader.js

Let me know the result.

FYI: your FTP not correct, I cannot find your site at there

Regards,

This message has an attachment file.
Please log in or register to see it.

10 years 1 month ago
  • Sander's Avatar
    Topic Author
  • Sander
  • Offline
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Licenses:
JomSocial Active

Hi Albertus,

I've uploaded the new loader.js. Also changed the caching settings in Cloudflare to the bare minimum. The message box is showing now, but I'm getting new errors.

Failed to load resource: the server responded with a status of 403 (Forbidden)
jquery.min.js:4 POST http://www.foedies.com/index.php/kookclub.html/ 403 (Forbidden)
jquery.min.js:4 POST http://www.foedies.com/index.php/kookclub.html/ 403 (Forbidden)

When I try to upload a photo it's not coming through.

Is the issue with Cloudflare fixed with updating the loader.je also? Or is this still work in progress?

Also updated the FTP info.

Regards,

Sander

10 years 1 month ago
Licenses:

Hi Sander,

that different issue again, not related with the last fixes. what server type are you using NginX?

seem you using custom URL rewrite.

Regards

10 years 1 month ago
  • Sander's Avatar
    Topic Author
  • Sander
  • Offline
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Licenses:
JomSocial Active

Hi Albertus,

My site is hosted with Siteground so I guess it runs on Apache.

Wat do you mean with custom URL rewrite? I'm using sh404sef, do you mean this? I've been using Jomsocial icw sh404sef for more then 5 years now. Never used to be a problem.

The issue is not just for foedies.com. I have multiple sites with Jomsocial, but they are all showing the same issues.

I'm wondering what the issue could be?

Regards,

Sander

10 years 1 month ago
Licenses:

Hi Sander.

yes the issue related with sh404sef. if you turn off this pluguin:
sh404sef - System plugin

the issue will be disappeared. not sure why sh404sef bring error message 403. I suggest you to asking sh4040sef support for more.

Regards

The following user(s) said Thank You: Sander
10 years 1 month ago
  • Sander's Avatar
    Topic Author
  • Sander
  • Offline
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Licenses:
JomSocial Active

Hi Albertus,

The problem was indeed due to sh404sef. I had a basic version that comes with Siteground for free. I've updated the component to the full version and exluded the Community component. Now it works again. Weird thing is though that I have multiple sites with a similar setup and I don't have this issue there.

But it's fixed nevertheless.

Thanks!

Regards,

Sander

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW