Calendar ver. 0.7.10 implode error in cmsms 1.1.3.1

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
TJINAK
Forum Members
Forum Members
Posts: 136
Joined: Wed Feb 22, 2006 1:01 am

Calendar ver. 0.7.10 implode error in cmsms 1.1.3.1

Post by TJINAK »

FYIl:

Warning: implode() [function.implode]: Bad arguments. in /lib/adodb_lite/adodb-datadict.inc.php on line 726

Looks as thought the module is installed will test functionality.
hcamelion

Re: Calendar ver. 0.7.10 implode error in cmsms 1.1.3.1

Post by hcamelion »

We seem to be running into the same fresh install errors.  I got the error also:

Code: Select all

Warning: implode() [function.implode]: Bad arguments. in /home/folder/lib/adodb_lite/adodb-datadict.inc.php on line 726
Make sure to set the "Modify Calendar" permission on users who will be administering calendar events.
Here are the arrays being passed to to the implode function which basically installs the tables into the database:

Code: Select all

Array ( [CATEGORY_ID] => category_id INTEGER NOT NULL [CATEGORY_NAME] => category_name VARCHAR(255) [CATEGORY_ORDER] => category_order INTEGER ) Array ( [FIELD_NAME] => field_name VARCHAR(255) NOT NULL [FIELD_TYPE] => field_type INTEGER ) Array ( [EVENT_ID] => event_id INTEGER NOT NULL [EVENT_TITLE] => event_title VARCHAR(255) [EVENT_SUMMARY] => event_summary TEXT [EVENT_DETAILS] => event_details TEXT [EVENT_DATE_START] => event_date_start DATETIME [EVENT_DATE_END] => event_date_end DATETIME [EVENT_CREATED_BY] => event_created_by INTEGER [EVENT_CREATE_DATE] => event_create_date DATETIME [EVENT_MODIFIED_DATE] => event_modified_date DATETIME ) 
If you look at the modules install file you will see it executes:

Code: Select all

$dict->CreateTableSQL()
for every table needed to be created but it seems to fail on the second to last call to that function since that array is not shown above.  I think  because the array passed has a comma at the end of the last item in the array.  This will mess up implode().  Long story short I cant test it out if I am right because the module installer always downloads the files and overwrites my changes.  Anyway here is the fix if I am right.

Line #64
Change:

Code: Select all

field_value X,
		";
To:

Code: Select all

field_value X
		";
Notice the removal of the comma array separator. 

The "event_field_values" table and the "events_to_categories" table will not be created due to this error and will lead to further issues. 

I would give a try at trying to figure out the tinymce problem but I think without an error it would need someone well versed in the tinymce mod.
Last edited by hcamelion on Mon Oct 01, 2007 3:50 am, edited 1 time in total.
Locked

Return to “[locked] Installation, Setup and Upgrade”