Page 1 of 1

Fatal error: Cannot use string offset as an array in /usr/ho

Posted: Tue Nov 19, 2013 4:33 pm
by kenhirai
I have upgrade my script to the latest version and theres error when I view the gallery

Fatal error: Cannot use string offset as an array in /scj/includes/libs/content_functions.php on line 0

Re: Fatal error: Cannot use string offset as an array in /usr/ho

Posted: Tue Nov 19, 2013 4:37 pm
by admin
W\o cache as well ?

Re: Fatal error: Cannot use string offset as an array in /usr/ho

Posted: Tue Nov 19, 2013 4:49 pm
by kenhirai
yes without cache

any solution?

Re: Fatal error: Cannot use string offset as an array in /usr/ho

Posted: Tue Nov 19, 2013 4:49 pm
by kenhirai
the log shows

2013-11-19 11:15:35 : Mysql error: 1062 (Duplicate entry 'process_deleted' for key 'name') in query insert into functions_data (name, value) values ('process_deleted', '0')
2013-11-19 11:15:35 : Mysql error: 1062 (Duplicate entry 'empty_tmp_folder' for key 'name') in query insert into functions_data (name, value) values ('empty_tmp_folder', '0')
2013-11-19 11:30:10 : Mysql error: 1054 (Unknown column 'b' in 'where clause') in query UPDATE rot_gallery_stats SET current_shows = current_shows + 1 WHERE thumb_id IN (b)
2013-11-19 11:30:10 : Mysql error: 1054 (Unknown column 'b' in 'where clause') in query UPDATE LOW_PRIORITY rot_gallery_stats SET
total_shows = current_shows + shows0 + shows1 + shows2 + shows3 + shows4 + shows5 + shows6 + shows7 + shows8 + shows9,
total_clicks = current_clicks + clicks0 + clicks1 + clicks2 + clicks3 + clicks4 + clicks5 + clicks6 + clicks7 + clicks8 + clicks9,
total_points = current_points + points0 + points1 + points2 + points3 + points4 + points5 + points6 + points7 + points8 + points9,
total_ctr = (current_points + points0 + points1 + points2 + points3 + points4 + points5 + points6 + points7 + points8 + points9)/(current_shows + shows0 + shows1 + shows2 + shows3 + shows4 + shows5 + shows6 + shows7 + shows8 + shows9)/1000
WHERE thumb_id IN (0,b)
2013-11-19 11:30:10 : Mysql error: 1054 (Unknown column 'b' in 'where clause') in query SELECT thumb_id, current_index, current_shows, current_clicks, current_points, total_shows FROM rot_gallery_stats
WHERE current_shows > '2000'
AND thumb_id IN (0,b)
2013-11-19 11:30:10 : Mysql error: 1054 (Unknown column 'b' in 'where clause') in query SELECT id, gallery_md5 FROM rot_galleries WHERE id IN (0,b)

Re: Fatal error: Cannot use string offset as an array in /usr/ho

Posted: Tue Nov 19, 2013 5:07 pm
by kenhirai
after waiting for 20 mins now they work.

Re: Fatal error: Cannot use string offset as an array in /usr/ho

Posted: Tue Nov 19, 2013 5:15 pm
by admin
How did you check it w\o cache ?

Re: Fatal error: Cannot use string offset as an array in /usr/ho

Posted: Tue Nov 19, 2013 5:17 pm
by kenhirai
I use ?skip_ache=true at the back of the url

Re: Fatal error: Cannot use string offset as an array in /usr/ho

Posted: Tue Nov 19, 2013 5:25 pm
by admin
of index page or category ?