Page 1 of 1

Strict Standards: Only variables should be assigned by reference

Posted: 21 Sep 2016, 22:28
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

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

Posted: 22 Sep 2016, 11:34
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

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

Posted: 22 Sep 2016, 13:20
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

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

Posted: 22 Sep 2016, 13:37
by Jan
Hi, yes, it will be set in next version.

Jan

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

Posted: 03 Oct 2016, 13:53
by Jan
Hi, should be OK in version 3.0.3:
https://www.phoca.cz/news/903-phoca-pdf-3-0-3-released
Jan

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

Posted: 27 Apr 2017, 01:34
by Jan
Ok