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.

problem sort=featured my photo

11 years 4 days ago
  • davood's Avatar
    Topic Author
  • davood
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 2
Licenses:
JomSocial Active

hi
i have a problem
1- i cliked my photo
2- clicked tab my photo
3- sort photo = featured --->link (photos?sort=featured)

page reload and show error cod 1064 :


1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) DESC, a.id LIMIT 0,12' at line 1 SQL=SELECT a.*, COUNT( DISTINCT(b.id) ) AS count, MAX(b.created) AS lastupdated, c.thumbnail as thumbnail, c.storage AS storage, c.id as photoid FROM `SrTbUXTkPlFnD_community_photos_albums` AS a LEFT JOIN `SrTbUXTkPlFnD_community_photos` AS b ON a.id=b.albumid LEFT JOIN `SrTbUXTkPlFnD_community_photos` AS c ON a.photoid=c.id WHERE a.type != '' AND a.creator='72' AND a.permissions <='40' AND a.type NOT LIKE '%group%' AND a.type NOT LIKE '%event%' GROUP BY a.id ORDER BY (a.`id` IN ()) DESC, a.id LIMIT 0,12



please help me
how to fix?
i sent screen shot error

Attachments:
11 years 4 days ago
Licenses:

Hi,

I confirmed this is a bug. here the temporary fix:
edit /components/com_community/models/photos.php at 835, change the code from

$order = " ORDER BY (a.`id` IN (".$featuredAlbums.")) DESC, a.id ";
to
if ($featuredAlbums) $order = " ORDER BY (a.`id` IN (".$featuredAlbums.")) DESC, a.id ";
else $order = " ORDER BY a.id  DESC";

Regards

The following user(s) said Thank You: davood
11 years 3 days ago
  • davood's Avatar
    Topic Author
  • davood
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 2
Licenses:
JomSocial Active

for everyone is bug?
update jomsocial for bug?

11 years 3 days ago
Licenses:

Hi,

yes it is. if confirmed bug, all jomsocial users will facing this issue.
the bug fixes will be at 4.1.2

Regards

The following user(s) said Thank You: davood
11 years 3 days ago
  • davood's Avatar
    Topic Author
  • davood
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 2
Licenses:
JomSocial Active

Thank you very much jomsocial team.
my problem is fixed.
good luck.

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