CMS MADE SIMPLE FORGE

Gallery

 

[#10682] Parameter 2 to SmartyBC::assign_by_ref() expected to be a reference

avatar
Created By: Rolf (rolf1)
Date Submitted: Mon Oct 05 02:48:01 -0400 2015

Assigned To:
Version: 2.0.2
CMSMS Version: 2.0.1.1
Severity: Major
Resolution: Fixed
State: Closed
Summary:
Parameter 2 to SmartyBC::assign_by_ref() expected to be a reference
Detailed Description:
Hello Jos,

After Core upgrade to 2.0.1 I get in some modules, amongst Gallery:

Warning: Parameter 2 to SmartyBC::assign_by_ref() expected to be a reference,
value given in
/public/sites/www.website.com/lib/smarty/sysplugins/smarty_internal_templatebase.php
on line 773

There is a small fix, I found 7 files where to change:

$smarty->assign_by_ref
to:
$smarty->assign

That fixed it for me.

Grtz. Rolf


History

Comments
avatar
Date: 2015-10-05 04:48
Posted By: Franck (knarf)

Same here. I applied the corrections, ok for me too. Thanx Rolf.
      
avatar
Date: 2015-10-06 19:55
Posted By: Paul Baker (paulbaker)

Thanks, corrections worked for me too.

For others: Files to change are all in /modules/Gallery.

Files are:
action.default.php (3 changes in here, 1 change in each of the other files)
action.editgallery.php
action.gallerytree.php
action.showlatest.php
action.showlatestdir.php
action.showrandom.php
function.admin_galleriestab.php

      
avatar
Date: 2015-10-09 06:55
Posted By: manuel (manuel)

Thx! :) Applied it on Gallery 2.0.2 / cmsms 2.0.1.1
      
avatar
Date: 2015-10-12 05:37
Posted By: Simon Jones (SimonJ)

Thanks for this, the Gallery wiki was no help at all.
      
avatar
Date: 2015-10-14 16:37
Posted By: Jos (josvd)

fixed in release 2.0.3
      
Updates

Updated: 2015-11-01 16:09
state: Open => Closed

Updated: 2015-10-14 16:37
resolution_id: => 7