Every time a new unlogged user subscribe to the newsletter, after sendind the form it is printed this error message:
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 '>= '1' ORDER BY ASC' at line 1
SELECT pn_prop_id AS "prop_id",pn_prop_label AS "prop_label",pn_prop_dtype AS "prop_dtype",pn_prop_length AS "prop_length",pn_prop_weight AS "prop_weight",pn_prop_validation AS "prop_validation" FROM zk_site_user_property AS tbl WHERE >= '1' ORDER BY ASC
Exit-Handler: Exiting after SQL-error
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
ItsNews error on subscribing
-
- Rank: Softmore
- Registered: Aug 08, 2002
- Last visit: May 21, 2010
- Posts: 122
-
- Rank: Developer
- Registered: Feb 17, 2005
- Last visit: May 21, 2010
- Posts: 684
I created a ticket here http://code.zikula.org/dits/ticket/32. Will investigate. -
- Rank: Developer
- Registered: Feb 17, 2005
- Last visit: May 21, 2010
- Posts: 684
Arkanoyd, which version Zikula are you running? Which module have you set to manage user profiles? -
- Rank: Softmore
- Registered: Aug 08, 2002
- Last visit: May 21, 2010
- Posts: 122
-
- Rank: Developer
- Registered: Feb 17, 2005
- Last visit: May 21, 2010
- Posts: 684
I've investigated. Conclusion:
In pnuser.php line 449 (function ItsNews_user_subscribeunsubscribe_request) the API function pnUserGetAll() is called to check if the email address provided by anonymous user that tries to subscribe is not the same as the email address of a registered user. In that case the anonymous user is informed and redirected to login.
The error message that you see comes from pnUserGetAll() (includes/pnUser.php line 709). The call to pnModDBInfoLoad on line 726 is supposed to merge information about the Profile module database tables with the global database table information array. This does not happen. It's either a bug in the Profile module or in the pnModDBInfoLoad function. I'll submit a bug report for this.
To get around this error in modules/ItsNews/pnuser.php you can replace thisCode
// get registered users
$allusers = pnUserGetAll();
if ($allusers === false) {
return pnVarPrepHTMLDisplay(_ITSNEWSUSERSGETFAILED);
}
withCode
// get registered users
$allusers = array();
// $allusers = pnUserGetAll();
// if ($allusers === false) {
// return pnVarPrepHTMLDisplay(_ITSNEWSUSERSGETFAILED);
// } -
- Rank: Developer
- Registered: Feb 17, 2005
- Last visit: May 21, 2010
- Posts: 684
The issue is already more or less known : http://code.zikula.org/core/ticket/952 -
- Rank: Softmore
- Registered: Aug 08, 2002
- Last visit: May 21, 2010
- Posts: 122
Thank you very much!!!
I modified also pnadmin.php with the same replacements because I couldn't also add new users from administration.
There is also a minor bug in itsnews_admin_menu that cause an error message:
Code
<!--[modulestylesheet stylesheet=admin.css modname=admin xhtml=true]-->
it seems to be obsolete...
edited by: arkanoyd, May 15, 2009 - 03:14 AM
- Moderated by:
- Support
