hi all, i have noticed this in an error report and wondered if anyone knew what it meant exactly..

Assigning the return value of new by reference is deprecated in /home/*********/public_html/init.php on line 531

also on line 701?

thanks

*

CBG

  • *****
  • 673
    • osDate Forum
Re: Assigning the return value of new by reference is deprecated??? help
« Reply #1 on: February 12, 2015, 05:26:26 PM »
What version of osDate are you using?
Regards,
CBG (Garry)
osDate: 2.6.5, 2.7 & Evo
PHP: 5.5.x/5.6.x (5.3.x to 5.6.x) | MySQL: 5.5.34-cll

Re: Assigning the return value of new by reference is deprecated??? help
« Reply #2 on: February 12, 2015, 05:27:27 PM »
hi, i am using the latest version

or 4.0.1 which i believe is 2.6.5
« Last Edit: February 12, 2015, 05:30:58 PM by mnarkyp77 »

*

CBG

  • *****
  • 673
    • osDate Forum
Re: Assigning the return value of new by reference is deprecated??? help
« Reply #3 on: February 12, 2015, 05:56:25 PM »
4.0.1 is not 2.6.5
On line 531 2.6.5 init is a blank line and 701 is a close bracket
Regards,
CBG (Garry)
osDate: 2.6.5, 2.7 & Evo
PHP: 5.5.x/5.6.x (5.3.x to 5.6.x) | MySQL: 5.5.34-cll

Re: Assigning the return value of new by reference is deprecated??? help
« Reply #4 on: February 12, 2015, 05:58:25 PM »
4.0.1 is not 2.6.5
On line 531 2.6.5 init is a blank line and 701 is a close bracket

i thought 4.0.1 was just the responsive version of 2.65?

Re: Assigning the return value of new by reference is deprecated??? help
« Reply #5 on: February 12, 2015, 06:02:17 PM »
ok, line 531 for me is this ,... $blog =& new Blog(); i have removed all blog files as not in use is this why i am getting the error?

and for me line 701 is the followin... $mod =& new modOsDate();

*

CBG

  • *****
  • 673
    • osDate Forum
Re: Assigning the return value of new by reference is deprecated??? help
« Reply #6 on: February 12, 2015, 06:10:07 PM »
This was fixed in osDate 2.6.5.
But to fix the problem

Change
Code: [Select]
$blog =& new Blog();

To
Code: [Select]
$blog = new Blog();

Change
Code: [Select]
$mod =& new modOsDate();

To
Code: [Select]
$mod = new modOsDate();

As for why you are getting the error for the blog, it is because it in the init.php and the files you removed are separate files.
Regards,
CBG (Garry)
osDate: 2.6.5, 2.7 & Evo
PHP: 5.5.x/5.6.x (5.3.x to 5.6.x) | MySQL: 5.5.34-cll

Re: Assigning the return value of new by reference is deprecated??? help
« Reply #7 on: February 12, 2015, 06:11:03 PM »
hey thanks for your time appreciate it  ;)

*

CBG

  • *****
  • 673
    • osDate Forum
Re: Assigning the return value of new by reference is deprecated??? help
« Reply #8 on: February 12, 2015, 06:13:19 PM »
Hi,

Also check to see if you have this in init.php

Code: [Select]
$t =& new osDate_Smarty;

If so change it to
Code: [Select]
$t = new osDate_Smarty;
Regards,
CBG (Garry)
osDate: 2.6.5, 2.7 & Evo
PHP: 5.5.x/5.6.x (5.3.x to 5.6.x) | MySQL: 5.5.34-cll

Re: Assigning the return value of new by reference is deprecated??? help
« Reply #9 on: February 12, 2015, 06:16:20 PM »
Hi,

Also check to see if you have this in init.php

Code: [Select]
$t =& new osDate_Smarty;

If so change it to
Code: [Select]
$t = new osDate_Smarty;


i have the following does it need to be changed ? thanks



### fix php5 fc install
### $t =& new osDate_Smarty;
$t = new osDate_Smarty;
### fix end

*

CBG

  • *****
  • 673
    • osDate Forum
Re: Assigning the return value of new by reference is deprecated??? help
« Reply #10 on: February 12, 2015, 06:20:42 PM »
That is fine as the fix has been applied.
Regards,
CBG (Garry)
osDate: 2.6.5, 2.7 & Evo
PHP: 5.5.x/5.6.x (5.3.x to 5.6.x) | MySQL: 5.5.34-cll

Re: Assigning the return value of new by reference is deprecated??? help
« Reply #11 on: February 12, 2015, 06:21:43 PM »
thank u  ;)

*

Pharg

  • *****
  • 2,071
  • osDate Version: osDate Evo v1.0
Re: Assigning the return value of new by reference is deprecated??? help
« Reply #12 on: February 12, 2015, 08:38:33 PM »
4.0.1 is not 2.6.5
On line 531 2.6.5 init is a blank line and 701 is a close bracket

i thought 4.0.1 was just the responsive version of 2.65?

Hi mnarkyp77,

That 4.0.1 has been manually written into the responsive template by scvoyager.

To fix that you need to find in the templates/default/admin/panel.tpl on line 68
Code: [Select]
<tr class="evenrow"><td>Version</td><td>4.0.1</td></tr>
Change it back to:
Code: [Select]
<tr class="evenrow"><td>{lang mkey='osdate_version'}</td><td>{$smarty.const.VERSION}</td></tr>
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35