I’ve recently updated a server to PHP/mySQL 5, and have noticed that we’re getting an error when the user isn’t a Super Admin:
MySQL ERROR: Error Number: 1064 Description: 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 ‘) ORDER BY blog_title’ at line 1 Query: SELECT blog_title, weblog_id, cat_group FROM exp_weblogs WHERE weblog_id IN) ORDER BY blog_title
Has anyone come across this? It looks like the loop for the allowed weblogs isn’t returning anything. This was working before, so my thought is that it has something to do with a non-mySQL 5 compatible query.
Actually - no, I’m not sure it ever worked. I set up the module for the client last year (and I’m a super-admin), and now that he’s trying to do it himself this year, we’re getting this error. He’s in a user group I made called “Editor”. He does have access to more than one weblog - I logged in as him and was able to post in the weblog her needs to post to, but when trying to organize the entries from that weblog using Selected Items, we get the error.
For now, I just added his group’s number to line 591 (we’re using version 1.2)
if ($SESS->userdata['group_id'] == 1 OR $SESS->userdata['group_id'] == 6)
That bypasses the part of the PHP that’s causing the error.
Also ran into this today (in Firebug):
uncaught exception: [Exception… “Not enough arguments [nsIXMLHttpRequest.send]” nsresult: “0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)” location: “JS frame :: http://www.site.com/system/index.php?S=111sessionidthingy222&C=modules&M=selecteditems&P=modify&selecteditems_id=1 :: bnb_ajax :: line 2033” data: no]
This is is Firefox. In safari, the entries to the left load fine, but in FF they do not load, and Firebug shows this exception (See attached pic). I’ll encourage client to use Safari in the meantime.
EDIT: In the rendered souce of the page, line 2033 is:
xml.send();
Ok here’s an interesting one - I’m using the “exclude” url replacement method. The server I am on (Siteground) requires me to alter the RewriteRule a little - RewriteRule ^(.*)$ /index.php?/$1 [L] where I had to add the ? after index.php to force a query.
I am getting a null response (its grabbing a whole page, not just some xml) from the SelectedItems module when it tries to retrieve the left-hand column xml. If I remove all the rewrite rules, I successfully get the xml. If I remove just the extra ? it still fails with a “no input file specified” error.
All other sites I have used this url replacement method on work correctly - except the difference in this case is the addition of the ?. Ideas? I know this is a weird one.
I’ve released a new version of this module which can be downloaded from:
This version should be a bit more robust to different server set-ups.
Note: the module now uses the CP jQuery extension that is included with recent EE installs or can be downloaded from: http://www.ngenworks.com/software/ee/cp_jquery/. This extension must be enabled under Extension Manager in the Admin > Utilities section of the Control Panel.
Andrew, thanks for this great module. a small tweek could be sorting the selections-list (on line 88 in the mcp. file i added: .” ORDER BY selecteditems_description”);
edit: i also added a “onclick="return confirm(‘Really delete?’);"”) on line 181, just in case when a enduser is tempted by the delete button 😊
I’m using Selected Items 1.4 with a masked Control Panel and I’m running into a problem stated earlier in this thread which is that the “Available Entries” column is blank. It’s clearly not finding the javascript because when I click “Get Entries” with FireFox, Firebug reports that ‘updateSource’ is not defined. When I access the module with the unmasked Control Panel URL, it works fine.
The line in mcp.selecteditems.php which links to the javascript functions is
$DSP->extra_header .= '<scr1pt type="text/javascript" src="modules/selecteditems/js/selecteditems.js"></scr1pt>';
It seems that I am having the same problem which was stated before:
The Selected Items control panel page uses the document relative URL “modules/selecteditems/selecteditems.js” to link to the script, which ends up pointing to http://www.example.com/modules/selecteditems/selecteditems.js instead of http://www.example.com/system/modules/selecteditems/selecteditems.js (where “system” could be another name chosen when installing EE).
Wasn’t this problem fixed in version 1.3? I don’t know what the earlier code looked like so I don’t know what was changed to resolve this. The URL to my root directory is of the form http://www.foo.edu/mysite/. Any insights into why I am still having the same problem with version 1.4 are appreciated. Thanks.
-john
Hi - I’m using selectedItems 1.4 on a site where I’ve also used Levi Graham’s social bookmarks - I installed the social bookmarks extension first, but when I installed selectedItems, its stopped the social bookmarks from working - its now just displaying the tag on the front end - has anyone come across this before?
thanks Kevin
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.