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:

  • create classified ad content ticked
  • delete own classified ad content ticked
  • edit own classified ad content ticked

Comments

LuRcH@www.daihatsu-drivers.co.uk’s picture

I 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.

Gabriel R.’s picture

I am seeing this too, and my user is NOT an admin.

fgm’s picture

Version: 6.x-3.0-rc1 » 6.x-3.x-dev
Assigned: Unassigned » fgm

Confirmed, and also in latest 6.x-3.x, save for the fact that it affects all users, even admins.

fgm’s picture

Status: Active » Needs review
StatusFileSize
new2.9 KB

This should fix it.

fgm’s picture

This should fix it.

fgm’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Status: Needs review » Patch (to be ported)

Committed to 6.x-3.x.

Needs to be checked and ported to D7 if the problem also exists there.

LuRcH@www.daihatsu-drivers.co.uk’s picture

I have tested the patch with the latest 6.x-3.x-dev version and it does resolve the issue. Thanks!

fgm’s picture

D7 version of patch and test.

fgm’s picture

Status: Patch (to be ported) » Needs review

Status: Needs review » Needs work

The last submitted patch, 0001-Issue-1282282-by-fgm-Cannot-use-a-scalar-value-as-an.patch, failed testing.

fgm’s picture

Status: Needs work » Fixed

Usual 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.