![]() |
|
#1
|
|||
|
|||
|
I am getting the following error displayed when I try to edit my vba cmps pages.
Warning: trim() expects parameter 1 to be string, array given in [path]\admincp\vba_cmps_admin.php on line 3290 It is displayed right after the Inactive Modules and right before the Usergroup permissions. As a result, the previously set usergroup permissions end up being blank, so it looks like it is failing to retreive the settings from the database due to that error. Line 3290: Code:
if ((trim($page['userperms']) AND in_array($usergroup['usergroupid'], $page['userperms'])) Anyone ever see this before? |
|
#2
|
||||
|
||||
|
Does your Admin CP => vBa CMPS => Diagnostics link return any errors?
__________________
Frequently Asked Questions CMPS Users Manual For vBadvanced software assistance, please use the support forums. Unsolicted PMs, IMs, and email will not be responded to. If you have a non-software related question or problem with your account, please submit a support ticket. |
|
#3
|
|||
|
|||
|
Hi Bri,
No problems are listed under the cmps diags. |
|
#4
|
||||
|
||||
|
Ahhh, I see the issue now. That's strange that it's not giving me the error locally or on any of my sites, but the trim() function shouldn't be used there. I've just applied the fix to the admincp/vba_cmps_admin.php file in the download package here, so if you will download the files again and upload the new file that should take care of the issue.
Or if you'd rather apply the fix manually, just look in the file for this code: PHP Code:
PHP Code:
__________________
Frequently Asked Questions CMPS Users Manual For vBadvanced software assistance, please use the support forums. Unsolicted PMs, IMs, and email will not be responded to. If you have a non-software related question or problem with your account, please submit a support ticket. |
|
#5
|
|||
|
|||
|
Perfect! That fixed it.
Thanks for your help Brian. |
|
#6
|
|||
|
|||
|
tnx brian
|
|
#7
|
|||
|
|||
|
thanks brain
|
|
#8
|
|||
|
|||
|
HI!!
If this will be the code: PHP Code: if ((trim($page['userperms']) AND in_array($usergroup['usergroupid'], $page['userperms'])) OR $_REQUEST['do'] == 'addpage' ) And replace with this: PHP Code: if (in_array($usergroup['usergroupid'], $page['userperms']) OR $_REQUEST['do'] == 'addpage') What was the main idea and how can we fix and find solution on this?any contribution? Thank you!! how to hypnotize people |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help: Editing the page | indiansword | "How Do I..." Questions | 1 | 09-19-2008 10:32 AM |
| editing cmps_index page | iMoney | "How Do I..." Questions | 1 | 08-04-2008 10:50 AM |
| Trim Forum links in Recent Threads Module !! | veenuisthebest | Troubleshooting & Problems | 1 | 05-06-2008 02:10 PM |
| Wysiwyg on Page Editing | Thalamus | Troubleshooting & Problems | 2 | 06-19-2007 05:01 AM |
| Editing Page Options | PoetJC | Troubleshooting & Problems | 2 | 01-08-2007 11:02 AM |