SimpleInvoices Group Forum › Forums › Fearless359 SimpleInvoices Discussion Group › It’s Update time, and I’m stuck at the start. 2023.0.4 to 2026
Tagged: update
- This topic has 10 replies, 2 voices, and was last updated 1 week, 2 days ago by
fearless359.
-
AuthorPosts
-
February 19, 2026 at 7:38 am #2284
Fuquar7
ParticipantFatal error: Uncaught PDOException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘si_sql_patchmanager’ already exists in /homepages/mysite.com/master/Inc/Claz/PdoDb.php:1287
Stack trace:
#0 /homepages/mysite.com/master/Inc/Claz/PdoDb.php(1287): PDOStatement->execute()
#1 /homepages/mysite.com/master/Inc/Claz/SqlPatchManager.php(145): Inc\Claz\PdoDb->query()
#2 /homepages/mysite.com/master/Inc/Claz/SqlPatchManager.php(215): Inc\Claz\SqlPatchManager::runSqlPatch()
#3 /homepages/mysite.com/master/index.php(247): Inc\Claz\SqlPatchManager::runPatches()
#4 {main}
thrown in /homepages/mysite.com/master/Inc/Claz/PdoDb.php on line 1287February 19, 2026 at 11:24 am #2285fearless359
KeymasterIs there more information in the
tmp/log/php.logfile? In particular the actual command that is trying to be executed?February 19, 2026 at 12:05 pm #2286Fuquar7
Participant[19-Feb-2026 15:01:01 America/Indiana/Indianapolis] PHP Fatal error: Uncaught PDOException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'si_sql_patchmanager' already exists in /homepages/MySite.com/master/Inc/Claz/PdoDb.php:1287 Stack trace: #0 /homepages/MySite.com/master/Inc/Claz/PdoDb.php(1287): PDOStatement->execute() #1 /homepages/MySite.com/master/Inc/Claz/SqlPatchManager.php(145): Inc\Claz\PdoDb->query() #2 /homepages/MySite.com/master/Inc/Claz/SqlPatchManager.php(215): Inc\Claz\SqlPatchManager::runSqlPatch() #3 /homepages/MySite.com/master/index.php(247): Inc\Claz\SqlPatchManager::runPatches() #4 {main} thrown in /homepages/MySite.com/master/Inc/Claz/PdoDb.php on line 1287 [19-Feb-2026 15:01:01 America/Indiana/Indianapolis] PdoDb destruct - incomplete transaction - rollback performed.February 20, 2026 at 11:05 am #2289fearless359
KeymasterThat’s not giving me enough information to determine the issue. Please enable logging to output debug info. Do this by changing the loggerLevel setting in the custom.config.ini to the DEBUG setting. Then delete the si.log file in the tmp/log directory. Then run SI. This should create a new si.log file. Please zip this and attach the zip file to a response to this topic. Hopefully that will help guide me to where the error is.
Oh, before uploading the log file, you should read through it a blank out personal info such as the SI login password as once uploaded, anyone can view the file.
-
This reply was modified 2 weeks, 3 days ago by
fearless359.
February 22, 2026 at 9:46 am #2292February 22, 2026 at 10:27 am #2294Fuquar7
ParticipantI did not change anything in the log file
This part did not look right to me
`2026-02-22, 12:39 pm > DEBUG > init.php – $_SESSION: Array
(
[timeout] => 1771841925
[id] => 1
[domain_id] => 1
[username] => demo
[email] => demo@simpleinvoices.group
[fakeAuth] => 1
[user_id] => 0
)February 22, 2026 at 4:20 pm #2295fearless359
KeymasterThe section you are looking at is a default login, typically when a new installation is being implemented. This is not an issue. What is an issue is that the program is acting as though you have an empty database, or at least an empty si_sql_patchmanager table. You say you are doing an upgrade. Is your custom.config.ini pointing to the correct database?
February 23, 2026 at 10:56 am #2296Fuquar7
ParticipantMy custom.config.ini is the same as I had from my last working version.
February 26, 2026 at 12:24 pm #2297fearless359
KeymasterI think the issue is with the content of your si_sql_patchmanager table. Please export it, zip it and attach it here?
February 26, 2026 at 6:44 pm #2298Fuquar7
Participantattached
Attachments:
February 28, 2026 at 8:15 am #2300fearless359
KeymasterThe issue is that the patch process couldn’t handle the case where not all applied patch history records are present in the si_sql_patchmanager table. Yours starts at patch 319 and ends at patch 335. I have corrected this error so your situation is not an issue. Download the latest SI version and run it. This should fix your issue.
-
This reply was modified 2 weeks, 3 days ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
Recent Comments