View Full Version : Error
Auke
October 8th, 2005, 01:03
I get an warning message i don't understand...
Call-time pass-by-reference has been deprecated
Can annybody explain me what is means? When i understand it i can probably fix it.
Thanks!
counterpoint
October 11th, 2005, 07:30
It is a PHP warning message, resulting from changes in the default settings in php.ini. It is possible to change the setting in php.ini to allow call-time pass-by-reference. (The setting is allow_call_time_pass_reference).
The context in which this arises is where a function is called, but the function does not identify itself as returning a value by reference (does not precede the function with ampersand). If the caller attempts to use return by reference in this situation, and the php.ini file does not permit it, the error arises.
I think that is right, but can't guarantee it! Hope it will set you in the right direction.
Auke
October 11th, 2005, 12:47
Thanks counterpoint,
I fixed the problem by removing the & sign in front of a variable in a function.
i found the solution on the problem by typing in the error message in Google.
But Thanks for explaining.
jusdorange
March 22nd, 2006, 03:14
Hi I got this same problem when I installed the zoom gallery.
Maybe a weird question, but where can I find the php.ini file so I can adjust the settings as in the above post?:o
counterpoint
March 22nd, 2006, 03:20
It can be in all kinds of places! If you are buying shared hosting, the actual ini file may not be accessible, but there could be a mechanism that will allow you to override some of the settings. If the server is under your own control, you will need to identify which php.ini file is the active one - it might be in the Apache directory, or in a system directory. You can tell if you've found it by changing something, then checking that it shows up through phpinfo.
jusdorange
March 22nd, 2006, 03:28
I have indeed a shared hosting, so that explains why I couldn't find the php.ini file. :)
whould there be a workaround or a way to overrule these settings and if so where would the most likely be? Thanks for your help so far!
counterpoint
March 22nd, 2006, 03:37
You will probably have some ability to override the settings, but not complete flexibility. But you will really have to ask your hosting provider - the way it is done varies across different systems - they should be able to tell you what you can do.
jusdorange
March 24th, 2006, 03:39
Thanks very much.
I contacted my hosting provider, however they would not like to change the php.ini file. That means I am not able use certain components of mambo because of that, since adjusting the php.ini file is the only option.
anyway thanks for the help
counterpoint
March 24th, 2006, 04:17
Sorry your host is not being very helpful :( You can suppress warning messages, if that is the only problem with using the plugins that you want. That can be done through the Mambo config regardless of the php.ini.
jusdorange
March 24th, 2006, 04:20
mmh it would let me use the component in that case.
where exactly could i do that?
Thanks again!!
f.kowal
April 1st, 2006, 11:43
DB function failed with error number 1054
Unknown column 'c.access' in 'on clause' SQL=SELECT c.*, g.name AS groupname, cc.name, u.name AS editor, f.content_id AS frontpage, s.title AS section_name, v.name AS author FROM mos_content AS c, mos_categories AS cc, mos_sections AS s LEFT JOIN mos_groups AS g ON g.id = c.access LEFT JOIN mos_users AS u ON u.id = c.checked_out LEFT JOIN mos_users AS v ON v.id = c.created_by LEFT JOIN mos_content_frontpage AS f ON f.content_id = c.id WHERE c.state >= 0 AND c.catid=cc.id AND cc.section=s.id AND s.scope='content' AND c.sectionid='1' ORDER BY cc.ordering, cc.title, c.ordering LIMIT 0,10
after a fresh installation i got this error when i entered content list setion in the administrator page
to fix this i replaced the query:
$query = "SELECT c.*, g.name AS groupname, cc.name, u.name AS editor, f.content_id AS frontpage, s.title AS section_name, v.name AS author"
. "\n FROM #__content AS c, #__categories AS cc, #__sections AS s"
. "\n LEFT JOIN #__groups AS g ON g.id = c.access"
. "\n LEFT JOIN #__users AS u ON u.id = c.checked_out"
. "\n LEFT JOIN #__users AS v ON v.id = c.created_by"
. "\n LEFT JOIN #__content_frontpage AS f ON f.content_id = c.id"
. ( count( $where ) ? "\nWHERE " . implode( ' AND ', $where ) : '' )
. $order
. "\n LIMIT $pageNav->limitstart,$pageNav->limit"
;*/
to:
$query = "SELECT c.*, g.name AS groupname, cc.name, f.content_id AS frontpage, s.title AS section_name, v.name AS author"
. "\n FROM #__content AS c "
. "\n JOIN #__categories AS cc ON (c.catid = cc.id) "
. "\n JOIN #__sections AS s ON (s.id = cc.section) "
. "\n JOIN #__users AS v ON v.id = c.created_by"
. "\n JOIN #__groups AS g ON g.id = c.access"
// . "\n LEFT JOIN #__users AS u ON u.id = c.checked_out"
. "\n LEFT JOIN #__content_frontpage AS f ON f.content_id = c.id"
. ( count( $where ) ? "\nWHERE " . implode( ' AND ', $where ) : '' )
. $order
. "\n LIMIT $pageNav->limitstart,$pageNav->limit"
in administrator/components/com_content/admin.content.php
vBulletin® v3.6.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.