Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Per your installation instructions I am attempting to go to
Admin->Site Config->TinyBrowser
I get this error:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in _form_set_class() (line 3969 of /usr/www/users/bobpcw/includes/form.inc).
When I navigate back to the home page i get this error again...
Help!
Comment | File | Size | Author |
---|---|---|---|
#4 | class_array-1080796-4.patch | 491 bytes | BWPanda |
Comments
Comment #1
pixture CreditAttribution: pixture commentedModify the tinybrowser.php (line #1153 or somewhere nearby) to change
From:
'#attributes' => array('class' => 'tinybrowser-weight'),
To:
'#attributes' => array('class' => array('tinybrowser-weight')),
Here's the extract of the function tinybrowser_role_form() where you need to modify.
I hope this will fix the issue.
Before (tinybrowser.php)
After
Comment #2
audster CreditAttribution: audster commentedThank you!
The function is not in tinybrowser.php though...
I found it in tinybrowser.module
made the change and
VOILA!
Comment #3
audster CreditAttribution: audster commentedregrading CLEAN URLs
In the doc it says this needs to be enabled and working.
you may have noticed that this is a real issue under D7 (the enable clean URLs checkbox not working and various configuration changes are not helping folks... I am one of them.. )
Clean URLS are not working on my site (and probably won't be until I can point the domain to the shared server when I'm done getting it up and running...) but tinybrowser seems to be handling it...
So errr, just what mayhem awaits me if Clean URLs isn't running/working?
Comment #4
BWPanda CreditAttribution: BWPanda commentedHere's a patch to fix the class array issue. The clean URLs issue should be opened separately.