Zen Cart Logo
Forums / General Questions / EZPages Error in log file after installing addons

EZPages Error in log file after installing addons

Views: 1,371

Results 1 to 7 of 7
3 Mar 2012, 1:53 PM
#1
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

EZPages Error in log file after installing addons

Hello.

version 139h .
Mysql 5.0.86 .

I have installed two addon for EZPages , Multilingual EZPages, and
Improved version of ezpages.

before uploading the site to hosting server, i noticed my debug file contains following error.

PHP Warning: trim() expects parameter 1 to be string, array given in ....\admin \ezpages.php line 140

PHP Warning: addslashes() expects parameter 1 to be string, array given in ..\admin\includes\functions\database.php on line 65

can someone please tell me whats wrong and hot to fix this .. I am not sure as what causing this problem as i been looking into my cache folder every time i did change something to make sure i have no errors.

3 Mar 2012, 2:29 PM
#2
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: EZPages Error in log file after installing addons

it seems this warning caused by creating / updating ezpages .

admin/ ezpages.php was modified by multilingual ezpages , however, line mentioned in warning is identical to untouched ezpages.php .

any advice ?

3 Mar 2012, 3:11 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: EZPages Error in log file after installing addons

tony_sar:

however, line mentioned in warning is identical to untouched ezpages.php .
No it's not.

This is the original line 140, and there's no mention of trim() at all there: ```
'status_sidebox' => $status_sidebox,


Others have reported the same error message in conjunction with your addon. I suggest you sort out the addon problem in the appropriate support thread, or don't use that addon.
3 Mar 2012, 3:45 PM
#4
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: EZPages Error in log file after installing addons

Thanks.
I tried to find the thread for this add on , but i must be looking wrong places.

I do need this addon as i am using ezpages as navigation and being located in Country of Quebec :unsure::shocking::cry: i need french or i will have a visit from police language . woow what a country .

3 Mar 2012, 3:58 PM
#5
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: EZPages Error in log file after installing addons

sovvvy , i found the thread. i posted there. thanks.

3 Mar 2012, 4:06 PM
#6
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: EZPages Error in log file after installing addons

line 140 corresponds to line 125 ..

if ($pages_html_text !='' and strlen(trim($pages_html_text)) > 6) {

is identical ..

3 Mar 2012, 4:37 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: EZPages Error in log file after installing addons

tony_sar:

line 140 corresponds to line 125 ..

if ($pages_html_text !='' and strlen(trim($pages_html_text)) > 6) {

is identical ..
That line may be the same, but it's making references to variables which clearly have been altered earlier in the code to be arrays instead of strings.