#632 – Recieving warnings in cron job

Posted in ‘Domus Organizer’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Friday, 01 April 2016 16:07 CEST
 switched to PHP 7.0 and now am having the following errors in my cron job reports.
It has been noted that crea/libraries/joomla/document/error.php

Made a call to this function:

DomusOrganizerCreaImportApp::setHeader()

that function wants an actual file resource which would have been created before the call to that function. My guess is that the directory tree structure has changed with new joomla. And so when it tries to open the file to write data it can't find it. This of course is only an assumption.

Warnings I get are below.

Cannot load Zend OPcache - it was already loaded
Content-type: text/html; charset=UTF-8

<br />
<b>Warning</b>: fwrite() expects parameter 1 to be resource, string given in <b>/home/nsisaliv/public_html/crea/libraries/vendor/joomla/application/src/Cli/Output/Xml.php</b> on line <b>34</b><br />
<br />
<b>Warning</b>: fwrite() expects parameter 1 to be resource, string given in <b>/home/nsisaliv/public_html/crea/libraries/vendor/joomla/application/src/Cli/Output/Xml.php</b> on line <b>34</b><br />
<br />
<b>Warning</b>: fwrite() expects parameter 1 to be resource, string given in <b>/home/nsisaliv/public_html/crea/libraries/vendor/joomla/application/src/Cli/Output/Xml.php</b> on line <b>34</b><br />
<br />
<b>Warning</b>: fwrite() expects parameter 1 to be resource, string given in <b>/home/nsisaliv/public_html/crea/libraries/vendor/joomla/application/src/Cli/Output/Xml.php</b> on line <b>34</b><br />
<br />
<b>Warning</b>: fwrite() expects parameter 1 to be resource, string given in <b>/home/nsisaliv/public_html/crea/libraries/vendor/joomla/application/src/Cli/Output/Xml.php</b> on line <b>34</b><br />
<br />
<b>Warning</b>: fwrite() expects parameter 1 to be resource, string given in <b>/home/nsisaliv/public_html/crea/libraries/vendor/joomla/application/src/Cli/Output/Xml.php</b> on line <b>34</b><br />
<br />
<b>Warning</b>: fwrite() expects parameter 1 to be resource, string given in <b>/home/nsisaliv/public_html/crea/libraries/vendor/joomla/application/src/Cli/Output/Xml.php</b> on line <b>34</b><br />
<br />
<b>Warning</b>: fwrite() expects parameter 1 to be resource, string given in <b>/home/nsisaliv/public_html/crea/libraries/vendor/joomla/application/src/Cli/Output/Xml.php</b> on line <b>34</b><br />
<br />
<b>Warning</b>: fwrite() expects parameter 1 to be resource, string given in <b>/home/nsisaliv/public_html/crea/libraries/vendor/joomla/application/src/Cli/Output/Xml.php</b> on line <b>34</b><br />
<br />
<b>Warning</b>: fwrite() expects parameter 1 to be resource, string given in <b>/home/nsisaliv/public_html/crea/libraries/vendor/joomla/application/src/Cli/Output/Xml.php</b> on line <b>34</b><br />
<br />
<b>Warning</b>: fwrite() expects parameter 1 to be resource, string given in <b>/home/nsisaliv/public_html/crea/libraries/vendor/joomla/application/src/Cli/Output/Xml.php</b> on line <b>34</b><br />
<br />
<b>Fatal error</b>: Uncaught Error: Call to undefined method DomusOrganizerCreaImportApp::setHeader() in /home/nsisaliv/public_html/crea/libraries/joomla/document/error.php:94
Stack trace:
#0 /home/nsisaliv/public_html/crea/libraries/cms/error/page.php(65): JDocumentError->render(false, Array)
#1 [internal function]: JErrorPage::render(Object(RuntimeException))
#2 {main}
thrown in <b>/home/nsisaliv/public_html/crea/libraries/joomla/document/error.php</b> on line <b>94</b><br />


Thank you
Gary
Custom Fields
Joomla! Version 3.5
Extension version (x.y.z) 4.0
 
Simwombat
Friday, 01 April 2016 16:43 CEST
Hello,

to be honest Domus Organizer is not tested vs PHP 7, so issues could arise.
That said, the problem occurs inside Joomla library, it seems that the constant STDOUT is not defined.
You should talk with your hosting about it.
signature.png
tampe125
Friday, 01 April 2016 19:33 CEST
Hi again
They changed the path but now we are getting other errors

Cannot load Zend OPcache - it was already loaded
Domus Organizer CREA import CLI 4.0.0 (2016-02-02)
Copyright (C) 2011-2016 Davide Tampellini
-------------------------------------------------------------------------------
Domus Organizer is Free Software, distributed under the terms of the GNU General
Public License version 2 or, at your option, any later version.
This program comes with ABSOLUTELY NO WARRANTY as per sections 15 & 16 of the
license. See http://www.gnu.org/licenses/gpl-3.0.html for details.
-------------------------------------------------------------------------------
You are using PHP 7.0.4 (cgi-fcgi)

Unsetting time limit restrictions

Fatal error: Uncaught Error: Call to undefined method DomusOrganizerCreaImportApp::setHeader() in /home/nsisaliv/public_html/crea/libraries/joomla/document/error.php:94
Stack trace:
#0 /home/nsisaliv/public_html/crea/libraries/cms/error/page.php(65): JDocumentError->render(false, Array)
#1 [internal function]: JErrorPage::render(Object(RuntimeException))
#2 {main}
thrown in /home/nsisaliv/public_html/crea/libraries/joomla/document/error.php on line 94


Hope you can help.
Gary
 
Simwombat
Monday, 04 April 2016 10:26 CEST
Can you please install the latest dev release and try again?
It should fix your issue.
signature.png
tampe125
Thursday, 05 May 2016 00:45 CEST
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
system
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

SUPPORT IS PROVIDED IN ENGLISH OR ITALIAN ONLY.
Please make sure that your question is not answered in the documentation before submitting a ticket.
It will save you time!

SUPPORT IS PROVIDED TO SUBSCRIBERS ONLY.
You can review all public tickets, but if you want to open a new ticket you must have a valid subscription.
You can purchase it here