Probable Core issues installing and uninstalling.
Permalink Browser Info Environment
I got errors installing and uninstalling. I cannot uninstall it to try to figure out the exact install error, but I'll show you how I fixed it.
My installing error was:
After I fixed this error and reinstalled with no issues, I got this error when trying to uninstall.
My uninstalling error was:
My installing error was:
/updates/concrete-cms-9.1.3/concrete/src/Antispam/Library.php if (is_array($r) && $r['saslHandle']) { <-- Error Line 100 Fixed by adding Line 99 $r['saslHandle'] = [];
After I fixed this error and reinstalled with no issues, I got this error when trying to uninstall.
My uninstalling error was:
Call to a member function getSystemAntispamLibraryName() on null /updates/concrete-cms-9.1.3/concrete/src/Package/ItemCategory/AntispamLibrary.php public function getItemName($library) { return $library->getSystemAntispamLibraryName(); <-- Error Line 19 }
Type: | Ticket |
---|---|
Status: | Resolved |
So, the SystemAntispamLibraries database table had a column that had the kalmoya_anti_spammer_master value in it already, so I deleted it and was able to uninstall it.
Now, beofre adding your fix and trying to install I got
I added your fix, which fixed the installing and uninstalling issue.
Thank you!
Now, beofre adding your fix and trying to install I got
I added your fix, which fixed the installing and uninstalling issue.
Thank you!
Now a new error, when clicked Go to Spam Control on your Installation Notes and I selected Anti-Spammer Master from Active Library.
Whoops \ Exception \ ErrorException (E_WARNING) Undefined array key "logging.checkNumberOfLinks" /packages/kalmoya_anti_spammer_master/src/AntiSpammerMaster/Helpers/Settings.php public function get($handle) { $default = $this->defaultValues[$handle]; <-- Error line 28 $value = $this->config->get($this->configPrefix . $handle, $default); return is_null($value) ? $default : $value; }
Thank you for pointing that out. Please update to 2.0.4, and you should be good to go.
If you like the package and had the time for a little review, that would really make my day :)
Thank you.
If you like the package and had the time for a little review, that would really make my day :)
Thank you.
Still having issues.
I was able to get it all set up and that went smooth.
But now when I submitted a message, I get:
I was able to get it all set up and that went smooth.
But now when I submitted a message, I get:
Whoops \ Exception \ ErrorException (E_WARNING) Undefined array key "totalSpamBlockedByType.checkMessageLengthAndWords" /packages/kalmoya_anti_spammer_master/src/AntiSpammerMaster/Helpers/Statistics.php public function get($handle) { $default = $this->defaultValues[$handle]; <-- Error Line 28 $value = $this->config->get($this->configPrefix . $handle, $default);
All issues resolved
Without an error message I don't really know why the error happened during installation but I'm guessing it's a PHP 8 error.
If that's the case the fix should have been:
What I can say is when you used your fix during installation you made the antispam library's handle empty and most likely saved it like that
So, my guess is, now when you want to uninstall it, it's trying to fetch it by handle and finds nothing so it breaks
If you could share the exact errors that would help
A possible solution to be able to uninstall would be to look inside the SystemAntispamLibraries database table for an entry where the column saslHandle is empty. If you find one, give it's saslHandle the value