SimpleInvoices Group Forum › Forums › Fearless359 SimpleInvoices Discussion Group › Fatal error: Uncaught TypeError: Return value of Inc\Claz\Export
- This topic has 39 replies, 2 voices, and was last updated 4 years, 2 months ago by facer.
-
AuthorPosts
-
July 13, 2020 at 1:01 pm #951facerParticipant
I get the following error after trying to export to pdf, also I noticed the /library/pdf does not exist inversion: simpleinvoices-master_2019
My php version is: v7.4.3Fatal error: Uncaught TypeError: Return value of Inc\Claz\Export::setFormat() must be an instance of Inc\Claz\void, none returned in /var/www/html/simpleinvoices/Inc/Claz/Export.php:502 Stack trace: #0 /var/www/html/simpleinvoices/modules/export/invoice.php(20): Inc\Claz\Export->setFormat(‘pdf’) #1 /var/www/html/simpleinvoices/index.php(374): include(‘/var/www/html/s…’) #2 {main} thrown in /var/www/html/simpleinvoices/Inc/Claz/Export.php on line 502
I have no idea what to do to fix it?
Thx
- This topic was modified 4 years, 3 months ago by facer.
July 14, 2020 at 10:04 am #958RRowleyParticipantYou should load master_2019.2. Your PHP version is better served by this version and brings you up to the best, most currently supported version.
July 15, 2020 at 3:17 am #961facerParticipantThx for your feedback, I did as you suggested I loaded master_2019.2 and deleted the php.log.
But it spits out a new error:
UPDATE
si_sql_patchmanager
SET WHEREsql_id
= 454
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘WHEREsql_id
= ‘454” at line 3Have you got a clue as I haven’t
thx
July 15, 2020 at 8:49 am #962RRowleyParticipantThere should be information in the tmp/log/php.log file. Please provide this. Also, in your database check the structure of the si_sql_patchmanager file and verify that the sql_id field exists.
July 15, 2020 at 11:21 am #964facerParticipantI uploaded the php log in zip format as it is forbidden to upload as php.log also a screenshot of database as far as I can see that seems all ok?
Thank you
July 15, 2020 at 11:30 am #972facerParticipantI still don’t know if the log was uploaded as it gives forbidden to upload for security reasons.
Anyway I share via the following link: https://justpaste.it/1yb7h
thx
- This reply was modified 4 years, 3 months ago by facer.
Attachments:
July 16, 2020 at 3:44 pm #980RRowleyParticipantI see the error but not how it exists. I’ve attached a zip file that contains and modified SqlPatchManager.php file in it. Extract this into your Inc/Claz directory to replace the version you have. This will write some additional debug information into the tmp/log/php.log file.
First delete the tmp/log/php.log file. Then run your SI application to replicate the issue. Assuming it fails the same way, zip the tmp/log/php.log file into a zip archive. You can then upload the zip archive to a response on this forum and I’ll look to see if I have any idea what is going on.
- This reply was modified 4 years, 2 months ago by RRowley.
Attachments:
July 17, 2020 at 2:36 am #985facerParticipantI did everything as you described and attach the result as zip.
Attachments:
July 21, 2020 at 8:11 am #1002RRowleyParticipantI’m flummoxed by this. Attached is a zip file with the PdoDb.php source in it. Put this in the Inc/Claz file same as you did for the SqlPatchManager.php file. Keep the SqlPatchManager.php change in there also. Clear your tmp/log/php.log file (can delete it). Run with these changes and send me the new php.log file. Ignore the extra pdoDb-1.zip file.
- This reply was modified 4 years, 2 months ago by RRowley.
- This reply was modified 4 years, 2 months ago by RRowley.
- This reply was modified 4 years, 2 months ago by RRowley.
Attachments:
July 23, 2020 at 7:10 am #1010facerParticipantI did all you wrote.
Attached is the php.log.zip.
Hopefully you will discover what is causing this.Attachments:
July 23, 2020 at 7:46 am #1012RRowleyParticipantThat didn’t catch the error. I believe my debug test was wrong and have changed it. Put the PdoDb.php file in the zip attached to this message in the Inc/Claz directory and try again. First clear the php.log file then do the test and give me the php.log from that test.
Attachments:
July 24, 2020 at 6:34 am #1014facerParticipantJuly 24, 2020 at 7:14 am #1016RRowleyParticipantAs Bullwinkle used to say, “This time for sure…” Please try again with file in attached file. Note that I modified the attached file name but the file inside is still PdoDb.php. This change will generate more output to the php.log file but hopefully will print what I am looking for.
Attachments:
July 25, 2020 at 8:43 am #1018facerParticipantMy daily upload, a fresh log file 😉
Attachments:
July 26, 2020 at 6:19 am #1020RRowleyParticipantOK, that gave me some information but not why the logic to set the update value isn’t working. So attached is a zip file for an updated version of PdoDb.php file. Extract this into the Inc/Claz directory, delete your tmp/log/php.log file and test again. Then zip the log file and send it to me.
Attachments:
-
AuthorPosts
- You must be logged in to reply to this topic.
Recent Comments