Page 1 of 1

Fatal error: Call-time pass-by-reference has been removed

Posted: Fri Jan 29, 2016 8:01 am
by mrpowerhouse
While we upgrade our CMSMS version to 2.1.1, there were 3 modules that were giving errors since 1.12.1: Location Manager, MemberImageManager, and Membership Manager. So what we did is remove these modules first by removing their folders from /modules/

We've managed to successfully upgrade to 2.1.1 now, but the problem is that as we put the said folders back, the error "Fatal error: Call-time pass-by-reference has been removed" still persists.

May we know how to fix this problem? Thank you very much in advance

Re: Fatal error: Call-time pass-by-reference has been remove

Posted: Fri Jan 29, 2016 8:13 am
by Rolf
You have to make a bug report for the module developer so he can fix it and do a new release

Re: Fatal error: Call-time pass-by-reference has been remove

Posted: Fri Jan 29, 2016 9:54 am
by mrpowerhouse
Rolf wrote:You have to make a bug report for the module developer so he can fix it and do a new release
Hi Rolf, appreciate the help. I have a question though: if the modules concerned weren't listed in http://dev.cmsmadesimple.org/project/list/module, does that mean those modules have been discontinued already?

Thanks.

Re: Fatal error: Call-time pass-by-reference has been remove

Posted: Fri Jan 29, 2016 9:57 am
by Rolf
What modules are installed at the website? Please post your system information http://docs.cmsmadesimple.org/troublesh ... nformation

Re: Fatal error: Call-time pass-by-reference has been remove

Posted: Fri Jan 29, 2016 10:10 am
by mrpowerhouse
Here's the system info:
----------------------------------------------
Cms Version: 2.1.1
Installed Modules:
CMSMailer: 5.2.4
FileManager: 1.5.2
MenuManager: 1.50.2
ModuleManager: 2.0.1
News: 2.50.3
nuSOAP: 1.0.2
Printing: 1.1.2
Search: 1.50.2
ThemeManager: 1.1.8
TinyMCE: 2.8.4
LocationManager: 1.0
MembershipManager: 1.0
MemberImageManager: 1.0
FCKeditorX: 1.1.0
Glossary: 1.0
FormBuilder: 0.7
PHPMyAdmin: 2.8.2-1
FormBrowser: 0.4
AdminSearch: 1.0
MicroTiny: 2.0.2
CGExtensions: 1.51.1
CMSContentManager: 1.1
DesignManager: 1.1.1
Navigator: 1.0.2

Config Information:
php_memory_limit: 1024M
max_upload_size: 32000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Australia/Brisbane
permissive_smarty: false

Php Information:
phpversion: 5.4.42
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 2048
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 1024M
max_execution_time: 30
register_globals: Off (False)
output_buffering: On
disable_functions: system, exec, shell_exec, passthru, escapeshellcmd, popen, pcntl_exec
open_basedir: /home/bwkgallery:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp
test_remote_url: Success
file_uploads: On (True)
post_max_size: 64M
upload_max_filesize: 32M
session_save_path: No check because open basedir active
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On

Performance Information:
allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: Off (False)
Server Information:
Server Software: LiteSpeed
Server Api: litespeed
Server Os: Linux 2.6.32-531.29.2.lve1.3.11.10.el6.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.47
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:
tmp: /home/bwkgallery/public_html/tmp (0755)
tmp_cache: /home/bwkgallery/public_html/tmp/cache (0755)
templates_c: /home/bwkgallery/public_html/tmp/templates_c (0755)
modules: /home/bwkgallery/public_html/modules (0755)
uploads: /home/bwkgallery/public_html/uploads (0755)
File Creation Mask (umask): /home/bwkgallery/public_html/tmp/cache (0755)
config_file: 0444
----------------------------------------------

Re: Fatal error: Call-time pass-by-reference has been remove

Posted: Fri Jan 29, 2016 10:21 am
by Rolf
I never heard of those modules... They can be custom made or created with a "module builder"-module.
You better contact the person who build the website for you and ask him.

Re: Fatal error: Call-time pass-by-reference has been remove

Posted: Sat Jan 30, 2016 5:45 pm
by mrpowerhouse
Oh ok. Looks like this is the only solution.

Thanks. :)

Re: Fatal error: Call-time pass-by-reference has been remove

Posted: Sat Jan 30, 2016 8:23 pm
by calguy1000
"call time pass by reference" is actually a PHP change.
It was deprecated for a long time (a few years) and now has been removed from PHP entirely. This is nothing to do with CMSMS itself.

Your PHP version has probably changed in the last little while, or you changed to a different host. Which means your third party modules will have to be updated to work with the newer PHP version.

Re: Fatal error: Call-time pass-by-reference has been remove

Posted: Sun Jan 31, 2016 10:14 am
by mrpowerhouse
calguy1000 wrote:"call time pass by reference" is actually a PHP change.
It was deprecated for a long time (a few years) and now has been removed from PHP entirely. This is nothing to do with CMSMS itself.

Your PHP version has probably changed in the last little while, or you changed to a different host. Which means your third party modules will have to be updated to work with the newer PHP version.
Oh, that's pretty interesting. Since we can't locate whoever made the module, looks like we need to figure out the code ourselves.

Thanks calguy, really appreciate your input. :)