tpwalker1980 wrote: Ok, Followed instructions to install module. http://www.devotion-guild.com/modules/Gallery/admin/index.php Getting the following errors now Warning: Invalid argument supplied for foreach() in /home/comforg1/public_html/devotion/modules/Gallery/includes/sessions.php on line 319 Warning: Cannot modify header information - headers already sent by (output started at /home/comforg1/public_html/devotion/modules/Gallery/includes/sessions.php:319) in /home/comforg1/public_html/devotion/modules/Gallery/admin/admin_functions.php on line 168 Warning: Cannot modify header information - headers already sent by (output started at /home/comforg1/public_html/devotion/modules/Gallery/includes/sessions.php:319) in /home/comforg1/public_html/devotion/modules/Gallery/admin/admin_functions.php on line 169 Warning: Cannot modify header information - headers already sent by (output started at /home/comforg1/public_html/devotion/modules/Gallery/includes/sessions.php:319) in /home/comforg1/public_html/devotion/modules/Gallery/admin/admin_functions.php on line 170 Warning: Cannot modify header information - headers already sent by (output started at /home/comforg1/public_html/devotion/modules/Gallery/includes/sessions.php:319) in /home/comforg1/public_html/devotion/modules/Gallery/admin/admin_functions.php on line 171 Warning: Cannot modify header information - headers already sent by (output started at /home/comforg1/public_html/devotion/modules/Gallery/includes/sessions.php:319) in /home/comforg1/public_html/devotion/modules/Gallery/admin/admin_functions.php on line 172 Lets start with the Foreach which I see nothing wrong if (empty($user_info[$user_table_fields['user_id']])) { $user_info = array(); $user_info['user_id'] = GUEST; $user_info['user_level'] = GUEST; $user_info['user_lastaction'] = $this->current_time; $user_info['user_lastvisit'] = ($this->read_cookie_data("lastvisit")) ? $this->read_cookie_data("lastvisit") : $this->current_time; } foreach ($user_table_fields as $key => $val) { if (isset($user_info[$val])) { $user_info[$key] = $user_info[$val]; } elseif (!isset($user_info[$key])) { $user_info[$key] = ""; } } return $user_info; } Posted: Fri Feb 03, 2006 5:02 pm Last edited by tpwalker1980 on Fri Feb 03, 2006 5:18 pm; edited 1 time in total
admin(Mark) wrote: try linking to the gallery from the modules name http://www.devotion-guild.com/modules.php?name=Gallery Posted: Fri Feb 03, 2006 5:06 pm
tpwalker1980 wrote: That just produces more errors. Was trying to work on the easy problems before movoing onto the SQL problems The line http://www.devotion-guild.com/modules.php?name=Gallery DISPLAYS THIS ABOVE THE PAGE DB Error: Bad SQL Query: SELECT FROM nuke_users WHERE = 'Kardsen' AND <> 1 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 'FROM nuke_users WHERE = 'Kardsen' AND <> 1' at line 2 DB Error: Bad SQL Query: SELECT s.session_user_id, s.session_lastaction, s.session_ip FROM 4images_sessions s LEFT JOIN nuke_users u ON ( = s.session_user_id) WHERE s.session_lastaction >= 1139004346 ORDER BY ASC, s.session_ip ASC 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 '= s.session_user_id) WHERE s.session_lastaction >= 1139004346 ORDER BY AS' at line 3 AND THIS IN THE MODULE DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name FROM 4images_images i, 4images_categories c LEFT JOIN nuke_users u ON ( = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN (0) ORDER BY i.image_date DESC LIMIT 3 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 '= i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_' at line 3 Posted: Fri Feb 03, 2006 5:13 pm
admin(Mark) wrote: This post should help you with your problem. Did you install 4images in the same database as nuke? You should. http://www.westernstudios.net/web/ftopict-377.html Posted: Fri Feb 03, 2006 5:26 pm
tpwalker1980 wrote: Found 1 problem in the Sessions.php file Line 34 $$user_table_fields = array( Had 2 $ *edit This was actually the only problem thnx Posted: Fri Feb 03, 2006 5:29 pm
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||