phpBB Digests

Missing config entry causing sql error on registration page - phpBB Digests

Missing config entry causing sql error on registration page

New postby dpaquin » Thu Mar 03, 2011 8:04 pm

Hello phpBB Folk,

Not sure if this is a known issue, but when I installed phpBB Digests 2.2.15 on my 3.0.8 phpBB board there was an issue with new user registrations. It would seem that the phpbb_config entry for user_digest_no_post_text was not created for some reason, as the following error came up when a user tried to create an account:

Code: Select all
SQL ERROR [ mysqli ]

Column 'user_digest_no_post_text' cannot be null [1048]


I added a new phpbb_config entry and the error seemed to go away. Would this commonly come up with the combination of 2.2.15 and 3.0.8?
dpaquin
Registered User
 
Posts: 11
Joined: Thu Mar 03, 2011 7:59 pm
Location: Vancouver, BC, Canada
Name: Dave

Re: Missing config entry causing sql error on registration page

New postby MarkDHamill » Thu Mar 03, 2011 9:21 pm

Yes. The UMIL installer program should be able to make these changes for you. I am guessing you did not run that program.
Get the latest versions of my Digests and Smartfeed mods.
MarkDHamill
Registered User
 
Posts: 2117
Joined: Fri Aug 02, 2002 12:36 am
Location: Oak Hill, Virginia USA

Re: Missing config entry causing sql error on registration page

New postby dpaquin » Mon Mar 07, 2011 6:01 pm

That would be run when I called the digests_install.php file and made it do the Install action, correct? When I browse to the digests_install.php file now my only option is to Uninstall.

Also, the digests don't seem to be going out at the moment (another result of this problem). The digests would be called in the cron.php script, right? When I run the mail_digests.php file manually the emails are sent out properly however (suggesting it's just a cron problem).
dpaquin
Registered User
 
Posts: 11
Joined: Thu Mar 03, 2011 7:59 pm
Location: Vancouver, BC, Canada
Name: Dave

Re: Missing config entry causing sql error on registration page

New postby MarkDHamill » Mon Mar 07, 2011 6:17 pm

Try this. Use phpMyAdmin or similar tool to change the attributes of the user_digest_no_post_text column in the phpbb_users table so it does not allow nulls. I am guessing your installation of MySQL has a policy that makes columns not so declared null by default. The digest UMIL installer does not tell it one way or the other whether the column can be null or not.

It looks like you ran digests_install.php earlier or you would not be asked if you want to uninstall. This makes me think something is wrong with how your database is set up.

cron.php does not control digests being sent out because it is not guaranteed to send items in the queue out at a specific time. As the DIY instructions say, you need to read /contrib/readme.html to learn these and other secrets.
Get the latest versions of my Digests and Smartfeed mods.
MarkDHamill
Registered User
 
Posts: 2117
Joined: Fri Aug 02, 2002 12:36 am
Location: Oak Hill, Virginia USA

Re: Missing config entry causing sql error on registration page

New postby dpaquin » Mon Mar 07, 2011 7:20 pm

Aha - that readme file is exactly what I needed. I've tried the setup again and things are working perfectly now.

All of the columns are set to not null (and always have been) so I'm not sure what the issue was originally caused by (aside from that missing key). Anyways, thanks for all the help and the quick replies!
dpaquin
Registered User
 
Posts: 11
Joined: Thu Mar 03, 2011 7:59 pm
Location: Vancouver, BC, Canada
Name: Dave

Re: Missing config entry causing sql error on registration page

New postby sbloomer » Sat Jul 09, 2011 2:11 pm

Strangely enough this happened to me as well after I had to undergo a complete reinstall. I noticed that this entry was missing from the digest_install.php file
sbloomer
Registered User
 
Posts: 64
Joined: Fri Jun 12, 2009 8:18 pm

Re: Missing config entry causing sql error on registration page

New postby MarkDHamill » Sat Jul 09, 2011 4:55 pm

I'm working on a new version. I will run a test with 2.2.16 to see if I can replicate this issue. If it's a problem it will be fixed in 2.2.17.
Get the latest versions of my Digests and Smartfeed mods.
MarkDHamill
Registered User
 
Posts: 2117
Joined: Fri Aug 02, 2002 12:36 am
Location: Oak Hill, Virginia USA

Re: Missing config entry causing sql error on registration page

New postby MarkDHamill » Fri Aug 05, 2011 2:34 pm

See this topic if you encounter this problem: http://phpbbservices.com/phpBB3/viewtop ... f=28&t=207
Get the latest versions of my Digests and Smartfeed mods.
MarkDHamill
Registered User
 
Posts: 2117
Joined: Fri Aug 02, 2002 12:36 am
Location: Oak Hill, Virginia USA