Strict Standards: Only variables should be assigned by reference

Phoca PDF - creating PDF documents in Joomla! CMS
Davy
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 21 Sep 2016, 00:06

Strict Standards: Only variables should be assigned by reference

Post by Davy »

Hello,

Depending on the php version you might not be able to generate pdf because of these minor bugs:

Code: Select all

Strict Standards: Only variables should be assigned by reference in XXX/administrator/components/com_phocapdf/helpers/phocapdfrender.php on line 89

Strict Standards: Only variables should be assigned by reference in XXX/plugins/phocapdf/content/content.php on line 129
You need to remove the extra "&" in "$dispatcher = &JDispatcher::getInstance();" and "$lang = &JFactory::getLanguage();" as mentioned here:
http://stackoverflow.com/questions/1177 ... ce-php-5-4

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Strict Standards: Only variables should be assigned by reference

Post by Jan »

Hi, thank you for the info, which version of the content plugin you run?

https://www.phoca.cz/documents/50-phoca/ ... tic-method
I am now working on next version where strict standards should be fixed.

Jan
If you find Phoca extensions useful, please support the project
Davy
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 21 Sep 2016, 00:06

Re: Strict Standards: Only variables should be assigned by reference

Post by Davy »

Thank you for the link, I didn't check the documentation for this error. Without changing the reporting configuration I've been able to get Phoca PDF working so I think it's a better solution to remove the extra "&".

I'm running the version 3.0.2 of the content plugin.

Davy
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Strict Standards: Only variables should be assigned by reference

Post by Jan »

Hi, yes, it will be set in next version.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Strict Standards: Only variables should be assigned by reference

Post by Jan »

Hi, should be OK in version 3.0.3:
https://www.phoca.cz/news/903-phoca-pdf-3-0-3-released
Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Strict Standards: Only variables should be assigned by reference

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply