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.

Nginx: image send/preview with 404 error.

9 years 5 months ago
  • Paulo's Avatar
    Topic Author
  • Paulo
  • Offline
  • Fresh Boarder
  • Posts: 73
  • Thank you received: 3
Licenses:
JomSocial Active Socialize Expired

Attachment pics.jpg not found


On image uploads on messages (like
Part of the message is hidden for the guests. Please log in or register to see it.
) I having problem with 404 error.



The page index.php?option=com_community&view=photos&task=ajaxPreviewComment
the response ok,

but in
/confraria/inbox/index.php?option=com_community&view=photos&task=ajaxPreviewComment
or other index.php after an slash like /something/index.php?option=com_community&view=photos&task=ajaxPreviewComment
the server return 404 error.

Its occurs only in this case on entire site (image upload only).

Attachments:
9 years 5 months ago
Licenses:

Hi Paulo,

seem your issue same like:
www.jomsocial.com/forum/installation/20879-nginx-compatibility
this is the issue with joomla Nginx site config

please put the following rewrite code at the Nginx site config for your site.

if ($uri !~* administrator) {
rewrite /\w*/index\.php http://your site domain/index.php$1 redirect;
}

please replace "your site domain" with your domain.
let me know the result. if you dont know how to do it. please contact your server support or provide SSH access detail with root access level

Regards,
Albert

9 years 5 months ago
  • Paulo's Avatar
    Topic Author
  • Paulo
  • Offline
  • Fresh Boarder
  • Posts: 73
  • Thank you received: 3
Licenses:
JomSocial Active Socialize Expired

I had already tried that, doesn't works because the browser send file and payload to one url then they receive an 302 to move to other url and the file is not uploaded to the new url.
The error is a json with an message like "file format invalid". So no one upload image in message field works, including one that was working, stops works, no working anymore.

{"error":"Tipo de arquivo enviado n\u00e3o \u00e9 compat\u00edvel."}

this means something like "file format invalid" or "incompatible file sent".

This is the same as access url directly without send any file.

9 years 5 months ago
Licenses:

Hi Paulo,

this issue only happen on NginX, seem joomla site config not properly works.
give me time for this. I must setup my local test site on NginX enviroment.

Regards,
Albert

9 years 5 months ago
Licenses:

Hi Paulo,

here the fix:
1. edit /components/com_community/assets/_release/js/bundle.js
2. find (using editor tool) any ajaxPreviewComment. you will find 2 location with this

index.php?option=com_community&view=photos&task=ajaxPreviewComment
changing it to
/index.php?option=com_community&view=photos&task=ajaxPreviewComment
3. repeat step 2 for ajaxAutocomplete

Regards,
Albert

The following user(s) said Thank You: Paulo
9 years 5 months ago
  • Paulo's Avatar
    Topic Author
  • Paulo
  • Offline
  • Fresh Boarder
  • Posts: 73
  • Thank you received: 3
Licenses:
JomSocial Active Socialize Expired

Hi Albertus,
The image is sent perfectly now. :)
Thank you!

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