Closed (fixed)
Project:
Classified Ads
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Sep 2011 at 08:08 UTC
Updated:
8 Jan 2012 at 18:10 UTC
Jump to comment: Most recent file
When an authenticated user tries posting a new ad on my site they get the error "The specified date is invalid." appear. In the logs it shows as "Cannot use a scalar value as an array in /home/lurch/daihatsu/public_html/includes/form.inc on line 1340.". However in testing I appear to be able to post fine when logged in as Administrator.
The permissions which are set for the authenticated users are the following, as thought originally was a permissions issue:
Comments
Comment #1
LuRcH@www.daihatsu-drivers.co.uk commentedI have tested some more and the error doesn't occur if "administer classified ads" is ticked in the permissions. Though obviously I don't want normal users to have this option.
Comment #2
Gabriel R. commentedI am seeing this too, and my user is NOT an admin.
Comment #3
fgmConfirmed, and also in latest 6.x-3.x, save for the fact that it affects all users, even admins.
Comment #4
fgmThis should fix it.
Comment #5
fgmThis should fix it.
Comment #6
fgmCommitted to 6.x-3.x.
Needs to be checked and ported to D7 if the problem also exists there.
Comment #7
LuRcH@www.daihatsu-drivers.co.uk commentedI have tested the patch with the latest 6.x-3.x-dev version and it does resolve the issue. Thanks!
Comment #8
fgmD7 version of patch and test.
Comment #9
fgmComment #11
fgmUsual d.o. test bot problem with base_path(). Test passes locally in web mode, drush mode, and with run-tests.sh, so committed to 7.x-3.x-dev.