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] Error w/EM install
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2, 3  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[solved] Error w/EM install
PostPosted: 05/19/2007 10:24 AM Reply with quote
Caravan
FTM
Caravan
Posts 282
Word Cnt. 31,380
BDay Apr 14
Sign Aries
Sex Sex:Female
Joined: Nov 01, 2006
Local time: 11:36 PM
Location: Denver, PA
usaCa.gif
Hi Nightrider, I helped someone get the custom profile fields mod installed on their forum last night through easyMOD. They had it on their server already, there were just some basic template error's that needed to be addressed to get the mod installed and so I did that for her. I thought all had installed well but it seems there is a problem. This is the error given when trying to register.

Code:
Could not update custom profile fields

DEBUG MODE

SQL Error : 1064 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 'WHERE user_id = 354' at line 3

UPDATE swirlweddings_users SE WHERE user_id = 354

Line : 864
File : usercp_register.php


There is also a few errors up top the page when trying to register.

Code:
Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/swirlwed/public_html/includes/usercp_register.php on line 348

Warning: Cannot modify header information - headers already sent by (output started at /home/swirlwed/public_html/includes/usercp_register.php:348) in /home/swirlwed/public_html/includes/page_header.php on line 503


As far as I know the SQL was run successfully by easyMOD, and I didn't have to alter the edits of includes/usercp_register.php so I am not sure what went wrong where.

Let me know if you need anymore info.  flower


Last edited by FTM on 05/22/2007 7:17 AM; edited 1 time in total
Back to Top
View user's profile Find all posts by FTM Send private message   Visit poster's website Yahoo Messenger
Re: Error w/EM install
PostPosted: 05/19/2007 5:54 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: 11:36 PM
Location: St Pete, FL
peace.gif
I'm going to need to see a text link to the usercp_register.php file.  The SE in that UPDATE query doesn't belong there and part of the query is missing.  I imagine that SE should actually say SET and the part that is supposed to be set/assigned has been accidentally removed...

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] Error w/EM install
PostPosted: 05/19/2007 6:15 PM Reply with quote
Caravan
FTM
Caravan
Posts 282
Word Cnt. 31,380
BDay Apr 14
Sign Aries
Sex Sex:Female
Joined: Nov 01, 2006
Local time: 11:36 PM
Location: Denver, PA
usaCa.gif
Thank you! Smile

http://www.divinemommies.com/tmp/usercp_register.txt
Back to Top
View user's profile Find all posts by FTM Send private message   Visit poster's website Yahoo Messenger
Re: Error w/EM install
PostPosted: 05/19/2007 7:06 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: 11:36 PM
Location: St Pete, FL
peace.gif
Would you happen to have a link to the Custom Proflile Fields MOD?  The version I have doesn't modify the usercp_register.php file...

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] Error w/EM install
PostPosted: 05/19/2007 7:14 PM Reply with quote
Caravan
FTM
Caravan
Posts 282
Word Cnt. 31,380
BDay Apr 14
Sign Aries
Sex Sex:Female
Joined: Nov 01, 2006
Local time: 11:36 PM
Location: Denver, PA
usaCa.gif
Here is a link to the actual install file that was run through easyMOD. This is the final install file with my edits to allow easyMOD to install. (.tpl files only)

http://www.divinemommies.com/tmp/install.txt
Back to Top
View user's profile Find all posts by FTM Send private message   Visit poster's website Yahoo Messenger
Re: Error w/EM install
PostPosted: 05/20/2007 1:00 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: 11:36 PM
Location: St Pete, FL
peace.gif
Ok, after a bit of a battle, I finally managed to install this on our Test board and it is working properly.  So I'm guessing that the MOD is not installed correctly.  One place in particular where it replaced the colspan setting with {NUMCOLS} might cause some problems if the colspan on the board was set to something other than 8.  If so, you would also need to adjust the following line in the MOD script, changing 8 to the actual column span number from the memberlist_body.tpl file.  I had to change it to 9 on our Test board...

Code:
$template->assign_var('NUMCOLS',count($profile_data)+8);

I had to make many other changes to the MOD script to get it to work with our Test board code and templates.  I can't replicate your problem though during registration.  I went through the usercp_register.php file that you provided and it appears that all the edits were made correctly...

Were the SQL queries run successfully?  Do you have a new phpbb_profile_fields table in the database?  When you add a new field, is it correctly added to the phpbb_profile_fields table???

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] Error w/EM install
PostPosted: 05/20/2007 7:30 AM Reply with quote
Caravan
FTM
Caravan
Posts 282
Word Cnt. 31,380
BDay Apr 14
Sign Aries
Sex Sex:Female
Joined: Nov 01, 2006
Local time: 11:36 PM
Location: Denver, PA
usaCa.gif
Yes, the colspan was the first error I needed to fix to install the mod.

Code:
#
#-----[ FIND ]----------------------
#
     <td class="catBottom" colspan="9" height="28">&nbsp;</td>

#
#-----[ REPLACE WITH ]-----------------
#
<!-- Custom Profile Fields MOD start -->
     <td class="catBottom" colspan="{NUMCOLS}" height="28">&nbsp;</td>
<!-- Custom Profile Fields MOD finish -->


The original find was for that line with the colspan of 8. I changed the install file to find the colspan of 9. So that most definitely could be the problem.

Yes, the SQL was run correctly through easyMOD, with no errors. Yes, we have that table in the database, and yes it does work correctly when we add a new field.  Heart
Back to Top
View user's profile Find all posts by FTM Send private message   Visit poster's website Yahoo Messenger
Re: [solved] Error w/EM install
PostPosted: 05/20/2007 7:41 AM Reply with quote
Caravan
FTM
Caravan
Posts 282
Word Cnt. 31,380
BDay Apr 14
Sign Aries
Sex Sex:Female
Joined: Nov 01, 2006
Local time: 11:36 PM
Location: Denver, PA
usaCa.gif
I just fixed the colspan spot you referenced above. It did help the memberlist look correct, thank you.

I tested a new registration again and got the same errors. I did notice that after I did my test register, it did in fact register my account (it's showing up on the newest member spot) but the admin don't get the registration email (she has it set to admin aproval)

Not sure if that helps you or not.

When I researched this error sometimes people got it from the SQL being run incorrectly. Should I delete the SQL created by the mod install, and re-run the SQL by hand and see if that helps?
Back to Top
View user's profile Find all posts by FTM Send private message   Visit poster's website Yahoo Messenger
Re: Error w/EM install
PostPosted: 05/20/2007 6:20 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: 11:36 PM
Location: St Pete, FL
peace.gif
The following line is what's causing your htmlspecialchars() warning error.  So try fixing this and see if it gets rid of the problem without creating any new ones:

OPEN
includes/usercp_register.php

FIND
Code:
$temp = (isset($HTTP_POST_VARS[$name])) ? $HTTP_POST_VARS[$name] : array();

REPLACE WITH
Code:
$temp = (isset($HTTP_POST_VARS[$name])) ? $HTTP_POST_VARS[$name] : '';

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] Error w/EM install
PostPosted: 05/20/2007 9:54 PM Reply with quote
Caravan
FTM
Caravan
Posts 282
Word Cnt. 31,380
BDay Apr 14
Sign Aries
Sex Sex:Female
Joined: Nov 01, 2006
Local time: 11:36 PM
Location: Denver, PA
usaCa.gif
After that change is made I get the following errors.

Code:
Warning: Invalid argument supplied for foreach() in /home/swirlwed/public_html/includes/usercp_register.php on line 341

Warning: Cannot modify header information - headers already sent by (output started at /home/swirlwed/public_html/includes/usercp_register.php:341) in /home/swirlwed/public_html/includes/page_header.php on line 503


Code:
Could not update custom profile fields

DEBUG MODE

SQL Error : 1064 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 'WHERE user_id = 362' at line 3

UPDATE swirlweddings_users SE WHERE user_id = 362

Line : 864
File : usercp_register.php
Back to Top
View user's profile Find all posts by FTM Send private message   Visit poster's website Yahoo Messenger
 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: 1, 2, 3  Next
Page 1 of 3


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0647s (PHP: 81% - SQL: 19%) - SQL queries: 58 - GZIP disabled - Debug on