Our Sponsors



Custom jobs at low cost, free lancers and service buyers.
PHP Nuke themes, stock photos, icons, drupal themes and more.



Western Studios :: View topic - Errors after install
Need Jobs done? Use our brand new Jobs Board to get your projects done at affordable prices.
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups     ProfileProfile   Log inLog in 


Errors after install



 
Post new topic   Reply to topicprinter friendly version    Western Studios Forum Index -> 4 Images
Western Studios

WS Newbie
WS Newbie
~PHP Nuke User~


Posts: 8
Next Group: 42 posts
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
Western Studios

Site Admin
Site Admin
~PHP Nuke User~

Platinum Subscriber

Posts: 3353
Staff
Next Group: 1647 posts
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

Western Studios

WS Newbie
WS Newbie
~PHP Nuke User~


Posts: 8
Next Group: 42 posts
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

Western Studios

Site Admin
Site Admin
~PHP Nuke User~

Platinum Subscriber

Posts: 3353
Staff
Next Group: 1647 posts
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

Western Studios

WS Newbie
WS Newbie
~PHP Nuke User~


Posts: 8
Next Group: 42 posts
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

Post new topic   Reply to topic    Western Studios Forum Index -> 4 Images All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Version Information 4 Guest 763 Sat Jun 18, 2005 11:49 pm
Guest View latest post
No new posts PHP Nuke klips 0 admin 697 Fri Mar 18, 2005 6:52 pm
admin View latest post
No new posts Paypal success.php 1 Jabba 867 Fri Mar 04, 2005 7:00 pm
admin View latest post
No new posts Testing PHP tags 2 admin 847 Thu Mar 03, 2005 6:06 pm
admin View latest post
No new posts PHP Nuke Icons 0 admin 901 Mon Aug 23, 2004 4:05 pm
admin View latest post
 
Forums ©