Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] Simple Colour Usergroups
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: Previous  1, 2, 3
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Re: [Solved] Simple Colour Usergroups
PostPosted: 06/24/2007 6:21 PM Reply with quote
Citation
Karen
Citation
Posts 1253
Word Cnt. 68,166
BDay Nov 9
Sign Scorpio
Sex Sex:Female
Joined: Jan 06, 2006
Local time: 2:11 AM
greatbrE.gif
Gosh no I haven't a clue!  Its like a cache really as those holly sprigs were added to the template then replaced once Christmas was over, so they only exist in the forumsOLD folder - and they've been renamed and are waiting to be used this year  Dancing

A slightly OT problem - someone just tried to register and got this error Could not insert data into users table

DEBUG MODE

SQL Error : 1136 Column count doesn't match value count at row 1

INSERT INTO phpbb_users (user_id, username, user_regdate, user_password, user_email, user_regip, user_icq, user_website, user_occ, user_from, user_interests, user_popup_notes, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_postspp, user_topicspp, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey) VALUES (346, 'bbb', 1182726565, 'cbd44f8b5b48a51f7dab98abcdf45d4e', 'eviesmummy06@googlemail.com', '514f32c8', '', '', '', '', '', '', '', '', 0, 0, '', '', '', 1, 1, '', '', 0, 1, 1, 0, 1, 1, 0, 'D M d, Y g:i a', 'english', 2, 0, 1, 0, '4db7350a4f74d2')

Line : 676
File : usercp_register.php

I know some of my SQL queries didn't carry, is there any way to tell what needs to be added or is it a matter of going through my mods?
Back to Top
View user's profile Find all posts by Karen Send private message   Visit poster's website Phoogle Map
Re: [Solved] Simple Colour Usergroups
PostPosted: 06/24/2007 6:44 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 10:11 PM
Location: St Pete, FL
peace.gif
I know where the images are being found but I don't know what page is actually loading when you enter your domain name in your browser.  That is the million dollar question at this point...

The problem is that the query has to have the same number of listed fields as values.  The error says that the count doesn't match, so you need to figure out what is extra and remove it from the usercp_register.php file.  The query probably isn't at line 676 but it probably isn't that far above the line, so that should give you an idea of where to look...

I'm taking off for the evening, so I will have to take a look at this later.  There just aren't enough hours in the day...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Simple Colour Usergroups
PostPosted: 06/25/2007 1:45 AM Reply with quote
Citation
Karen
Citation
Posts 1253
Word Cnt. 68,166
BDay Nov 9
Sign Scorpio
Sex Sex:Female
Joined: Jan 06, 2006
Local time: 2:11 AM
greatbrE.gif
Here's the reply from IX...

Quote:
To create a redirect in a Unix-based account, do the following:

* On the control panel home page, click Web Options.
* Select the domain if you have more than one.
* On the Web Service page, scroll down to find the Redirect option and click the Add icon next to it.
* Agree with the charges.
* On the page that appears, create the redirect rule.
Redirect have to be look like :
Redirect from:

http://babydreamz.net/forums/portal.php
To:

http://babydreamz.net/index.html
REdirect have to be from file to the file, it is necessary


That's not what we asked is it?  dontknow  I tried it and just gave me a 'page cannot be displayed'  
I asked them again and they replied that they had added an .htaccess file and that it was working, but its not so I replied back to them again explaning that the links aren't going into my forum folder.

I asked on the IM portal site and someone suggested making an index.html file with...
Code:
<html>
<head>
<title>BabyDreamz</title>
<meta http-equiv="Refresh" content="1; URL=http://www.babydreamz.net/forums/portal.php">
</head>

<center><a href="http://www.babydreamz.net/forums/portal.php"><img src="http://babydreamz.net/templates/Diddle/images/logo_phpBB.gif"></a ></center>
<br>
Please wait while BabyDreamz Portal Loads
If you are not automatically redirected, please click <a href="http://www.babydreamz.net/forums/portal.php">here</a>
</body>
</html>


but that didn't work either.

Would it work if my forum files were moved into my root?
Its really odd isn't it  Brick wall


Last edited by Karen on 06/25/2007 12:12 PM; edited 2 times in total
Back to Top
View user's profile Find all posts by Karen Send private message   Visit poster's website Phoogle Map
Re: [Solved] Simple Colour Usergroups
PostPosted: 06/25/2007 3:23 AM Reply with quote
Citation
Karen
Citation
Posts 1253
Word Cnt. 68,166
BDay Nov 9
Sign Scorpio
Sex Sex:Female
Joined: Jan 06, 2006
Local time: 2:11 AM
greatbrE.gif
Re: the error.

I have this at 678 but I have no idea what if anything needs to be removed.

Code:
         $sql = "INSERT INTO " . USERS_TABLE . "   (user_id, username, user_regdate, user_password, user_email, user_regip, user_icq, user_website, user_occ, user_from, user_interests, user_popup_notes, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_postspp, user_topicspp, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
            VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . $userdata['session_ip']. "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, '" . str_replace("\'", "''", $postsspp) . "', '" . str_replace("\'", "''", $topicspp) . "', $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popup_pm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ";
         if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN || $coppa )
         {
Back to Top
View user's profile Find all posts by Karen Send private message   Visit poster's website Phoogle Map
Re: [Solved] Simple Colour Usergroups
PostPosted: 06/25/2007 4:55 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 10:11 PM
Location: St Pete, FL
peace.gif
The portal redirection problem should be resolved now...

I'm really not sure what the 678 code is in reference to that you posted above.  It looks like that belongs to a different topic...

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Simple Colour Usergroups
PostPosted: 06/25/2007 5:04 PM Reply with quote
Citation
Karen
Citation
Posts 1253
Word Cnt. 68,166
BDay Nov 9
Sign Scorpio
Sex Sex:Female
Joined: Jan 06, 2006
Local time: 2:11 AM
greatbrE.gif
Yes it is, I posted about it further up  sunny

Quote:
A slightly OT problem - someone just tried to register and got this error Could not insert data into users table

DEBUG MODE

SQL Error : 1136 Column count doesn't match value count at row 1

INSERT INTO phpbb_users (user_id, username, user_regdate, user_password, user_email, user_regip, user_icq, user_website, user_occ, user_from, user_interests, user_popup_notes, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_postspp, user_topicspp, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey) VALUES (346, 'bbb', 1182726565, 'cbd44f8b5b48a51f7dab98abcdf45d4e', 'eviesmummy06@googlemail.com', '514f32c8', '', '', '', '', '', '', '', '', 0, 0, '', '', '', 1, 1, '', '', 0, 1, 1, 0, 1, 1, 0, 'D M d, Y g:i a', 'english', 2, 0, 1, 0, '4db7350a4f74d2')

Line : 676
File : usercp_register.php


Here's what I had at line number 678

Code:
   $sql = "INSERT INTO " . USERS_TABLE . "   (user_id, username, user_regdate, user_password, user_email, user_regip, user_icq, user_website, user_occ, user_from, user_interests, user_popup_notes, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_postspp, user_topicspp, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
            VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . $userdata['session_ip']. "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, '" . str_replace("\'", "''", $postsspp) . "', '" . str_replace("\'", "''", $topicspp) . "', $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popup_pm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ";
         if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN || $coppa )
         {


Sorry I've probably confused you  Embarassed
(Not sure about the portal, I posted back in the other thread)
Back to Top
View user's profile Find all posts by Karen Send private message   Visit poster's website Phoogle Map
Re: [Solved] Simple Colour Usergroups
PostPosted: 06/25/2007 11:50 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 10:11 PM
Location: St Pete, FL
peace.gif
The portal and redirects are working fine now.  If it isn't for you, try deleting the cache in your browser, then reload the page...

The problem with this query was that there was a field named user_popup_notes that didn't have a VALUES setting.  I looked and found that you had added the Personal Notes MOD, which added the user_popup_notes field to the query.  However, the corresponding VALUES setting , $popup_notes was not added.  So after adding this, I created a new test account and all went smoothly...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Simple Colour Usergroups
PostPosted: 06/26/2007 1:24 AM Reply with quote
Citation
Karen
Citation
Posts 1253
Word Cnt. 68,166
BDay Nov 9
Sign Scorpio
Sex Sex:Female
Joined: Jan 06, 2006
Local time: 2:11 AM
greatbrE.gif
I'm still seeing it so will clear them again  headbang
As for the user notes that is another query that didn't stay in the database  Brick wall
I've just found my anon forum didn't stay anon too  Shocked  1

Thanks for doing that  occasion9  blob8
Back to Top
View user's profile Find all posts by Karen Send private message   Visit poster's website Phoogle Map
Re: [Solved] Simple Colour Usergroups
PostPosted: 06/26/2007 2:32 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 10:11 PM
Location: St Pete, FL
peace.gif
I'm not having any trouble navigating your forum and portal at all and the redirects seem to be working perfectly...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

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
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: Previous  1, 2, 3
Page 3 of 3


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0801s (PHP: 70% - SQL: 30%) - SQL queries: 54 - GZIP disabled - Debug on