Seite 1 von 1

Fresh Install 4.6.15 and Call-time pass-by-reference error

Verfasst: Di 17. Okt 2006, 20:44
von djavet
Hello

I've once again a "Call-time pass-by-reference" error with the fresh brand new installation from 4.6.15 when I search something:
http://www.datamed.ch/dev/cms/front_con ... p?idcat=40

Before I've resolve my problem with the not official release 4.6.8.5. But now I've search an test:
http://contenido.org/forum/viewtopic.ph ... deprecated

Was not the fix integrate to the new version? What can I do?

My setting:

Code: Alles auswählen

Server operating system  	Apache/1.3.27 (Unix) JRun/4.0 Chili!Soft-ASP/3.6.2 mod_gzip/1.3.26.1a mod_perl/1.27 FrontPage/5.0.2.2510 mod_ssl/2.8.14 OpenSSL/0.9.7b PHP-CGI/0.1b
PHP MySQL database extension 	mysql
MySQL server version 	4.0.18-log
Installed PHP version 	4.3.11
safe_mode 	activated
magic_quotes_gpc 	deactivated
magic_quotes_runtime 	deactivated
gpc_order 	GPC
memory_limit 	
max_execution_time 	45
Disabled functions 	nothing disabled
Gettext extension 	loaded
sql.safe_mode 	deactivated
Any idea?

Regards, Dominique

Verfasst: Mi 18. Okt 2006, 00:16
von HerrB
Please enable Frontend debugging (see contenido/includes/config.misc.php) and check line 185 and 361 of the code shown in the text area.

Should be a problem in a module...

Regards,
HerrB

Verfasst: Mi 18. Okt 2006, 07:23
von Oldperl
That's a known prob with PHP5 and Code written for PHP4, u find the solution searching with Google. There are 2 ways to fix this problem.

If u can change your php.ini, then toogle the directive 'allow_call_time_pass_reference' from OFF to ON.

Or u check all moduls for lines like

Code: Alles auswählen

$oArticleProp = new Article_Property(& $db, & $cfg);
This line is from Searchresult-Modul line 32. You have to delete the & so it looks like

Code: Alles auswählen

$oArticleProp = new Article_Property($db, $cfg);
That will work, but for the future, the developers have to make changes in the core of the Classes if they want to use call by reference.

Edit: here u will find the new output for searchresult :arrow: http://contenido.org/forum/viewtopic.ph ... highlight=

regards from Franken

Ortwin

Verfasst: Mi 18. Okt 2006, 18:33
von djavet
Hello

I change the code as you said, but always the same error:
http://www.datamed.ch/dev/cms/front_con ... p?idcat=40

I can't change the php.ini to my provider... must be something else.
I corrected the code as you mention, and a another time with the rewrite for the outpu for search, but module code are wrong:
http://contenido.org/forum/viewtopic.ph ... 71&p=89937

Thx for your help.
Regards, Dominique