Problem when upgrading from 1.49 to 1.50
Posted: Sat May 24, 2014 3:49 pm
I tried to upgrade the script from 1.49 to 1.50 and got the following error on header of index page:
Mysql error: 1054 (Unknown column 'g.url' in 'where clause') in query SELECT gr.name as category_name, gr_data.custom_name as category_custom_name, gr_data.description as category_description, gr.id as category_id, gr_data.group_custom_var1, gr_data.group_custom_var2, gr_data.group_custom_var3, gr_data.status as group_status, gr.parent_id, g.*, gs.total_shows FROM rot_galleries AS g JOIN rot_gallery_stats as gs on gs.thumb_id = g.id JOIN rot_groups AS gr ON g.url = gr.id JOIN rot_groups_data AS gr_data ON g.url = gr_data.group_id where g.rgroup = 0 and g.sponsor_id = 0 and g.url != 0 and content_type = '0' and gr_data.site_id = '0' and g.source_url = '' order by category_name asc.
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/admin/domains/domain.com/public_html/scj/includes/db_modules/mysql.php on line 236
Mysql error: 1054 (Unknown column 'g.url' in 'where clause') in query SELECT gr.name as category_name, gr_data.custom_name as category_custom_name, gr_data.description as category_description, gr.id as category_id, gr_data.group_custom_var1, gr_data.group_custom_var2, gr_data.group_custom_var3, gr_data.status as group_status, gr.parent_id, g.*, gs.total_shows FROM rot_galleries AS g JOIN rot_gallery_stats as gs on gs.thumb_id = g.id JOIN rot_groups AS gr ON g.url = gr.id JOIN rot_groups_data AS gr_data ON g.url = gr_data.group_id where g.rgroup = 0 and g.sponsor_id = 0 and g.url != 0 and content_type = '0' and gr_data.site_id = '0' and g.source_url = '' order by gs.total_ctr desc.
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/admin/domains/domain.com/public_html/scj/includes/db_modules/mysql.php on line 236
The galleries are not loading also on main page. How can I fix the problem ?
Mysql error: 1054 (Unknown column 'g.url' in 'where clause') in query SELECT gr.name as category_name, gr_data.custom_name as category_custom_name, gr_data.description as category_description, gr.id as category_id, gr_data.group_custom_var1, gr_data.group_custom_var2, gr_data.group_custom_var3, gr_data.status as group_status, gr.parent_id, g.*, gs.total_shows FROM rot_galleries AS g JOIN rot_gallery_stats as gs on gs.thumb_id = g.id JOIN rot_groups AS gr ON g.url = gr.id JOIN rot_groups_data AS gr_data ON g.url = gr_data.group_id where g.rgroup = 0 and g.sponsor_id = 0 and g.url != 0 and content_type = '0' and gr_data.site_id = '0' and g.source_url = '' order by category_name asc.
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/admin/domains/domain.com/public_html/scj/includes/db_modules/mysql.php on line 236
Mysql error: 1054 (Unknown column 'g.url' in 'where clause') in query SELECT gr.name as category_name, gr_data.custom_name as category_custom_name, gr_data.description as category_description, gr.id as category_id, gr_data.group_custom_var1, gr_data.group_custom_var2, gr_data.group_custom_var3, gr_data.status as group_status, gr.parent_id, g.*, gs.total_shows FROM rot_galleries AS g JOIN rot_gallery_stats as gs on gs.thumb_id = g.id JOIN rot_groups AS gr ON g.url = gr.id JOIN rot_groups_data AS gr_data ON g.url = gr_data.group_id where g.rgroup = 0 and g.sponsor_id = 0 and g.url != 0 and content_type = '0' and gr_data.site_id = '0' and g.source_url = '' order by gs.total_ctr desc.
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/admin/domains/domain.com/public_html/scj/includes/db_modules/mysql.php on line 236
The galleries are not loading also on main page. How can I fix the problem ?