Adding Remote Content Page breaks asset tree

In one of our Matrix instances (v. 4.2.0) adding a Remote Content Page immediately results in the following error message:


[indent][/indent]Unknown Error Type - 8192

[indent][/indent]Assigning the return value of new by reference is deprecated



These messages appear in red boxes, so it must be bad. You can't open the asset and when you log out of Matrix and log back in (probably even refreshing the asset tree will do it), you can't get access to the asset tree for the website the Remote Content Page was created in. The red error message boxes will show on every asset screen. We had the same problem with an existing Remote Content Page in a Matrix instance that was installed by Squiz after upgrading from Matrix 3 to Matrix 4 (also by Squiz). Is this a known bug?



I have seen this error message before in PHP stuff I do myself, so I think it has to do with a change from PHP 5.2 to PHP 5.3.



I fixed the Matrix instance by removing the Remote Content Page asset with one of the back-end scripts, but we really need remote content in this instance. Is there a way around the error?

[quote]
In one of our Matrix instances (v. 4.2.0) adding a Remote Content Page immediately results in the following error message:



[indent][/indent]Unknown Error Type - 8192

[indent][/indent]Assigning the return value of new by reference is deprecated



These messages appear in red boxes, so it must be bad. You can’t open the asset and when you log out of Matrix and log back in (probably even refreshing the asset tree will do it), you can’t get access to the asset tree for the website the Remote Content Page was created in. The red error message boxes will show on every asset screen. We had the same problem with an existing Remote Content Page in a Matrix instance that was installed by Squiz after upgrading from Matrix 3 to Matrix 4 (also by Squiz). Is this a known bug?



I have seen this error message before in PHP stuff I do myself, so I think it has to do with a change from PHP 5.2 to PHP 5.3.



I fixed the Matrix instance by removing the Remote Content Page asset with one of the back-end scripts, but we really need remote content in this instance. Is there a way around the error?

[/quote]



Hi,

I think you are talking about the issue mentioned here #5114 PHP 5.3 remote content page complaining “Assigning the return value of new by reference is deprecated”.

This is resolved in later versions of Matrix.



Hope that Helps,



Ash

[quote]
Hi,

I think you are talking about the issue mentioned here #5114 PHP 5.3 remote content page complaining “Assigning the return value of new by reference is deprecated”.

This is resolved in later versions of Matrix.



Hope that Helps,



Ash

[/quote]



Thanks Ash,

When reading that bug report I thought it would only get rid of the error messages, but just to try I turned off error reporting in the init.inc file and that fixed all the problems. Is that going to break anything else?



Niels

[quote]
Thanks Ash,

When reading that bug report I thought it would only get rid of the error messages, but just to try I turned off error reporting in the init.inc file and that fixed all the problems. Is that going to break anything else?



Niels

[/quote]

It shouldn't break anything else. It is just because the external library is using this, Matrix throws errors.

Glad it helped.



Ash