I think this is because my version went from 1.0.9 to 1.0.10 and the version check is a simple text check (and since 1 comes before 9 it fails to be detected as newer).
I don't have much php experience, but I see there is a version_compare function and this might be a possible fix for this, if it is a real problem affecting other users:
Code: Select all
--- a/index.php
+++ b/index.php
@@ -1279,7 +1279,7 @@ EOT;
$exists = is_dir($this->rootDir . "/$type/" . $dirName);
$currentVersion = $exists ? $this->getModuleVersion($type, $dirName) : null;
$newVersion = $addon['version'];
- $update = $newVersion !== null && $currentVersion !== null && $newVersion > $currentVersion;
+ $update = $newVersion !== null && $currentVersion !== null && (version_compare($newVersion, $currentVersion) > 0);
if ($update) {
$this->alert('info',
'New ' . $type . ' update available. <b><a data-toggle="wcms-modal" href="#settingsModal" data-target-tab="#' . $type . '">Open ' . $type . '</a></b>');
---- Include this in your post for support:
1. Version 3.5.0 of WonderCMS
2. What type of server do you have. (Apache, NGINX, IIS) LiteSpeed
3. What version of PHP do you have. 8.2.28
4. Does your hosting provider/server meet the minimum WonderCMS requirements? (https://wondercms.com/requirements - or send your hosting provider this link and ask them if they meet the minimum requirements). Yes, I have checked and they all seem okay.
5. Are you using a custom theme or any plugins, which ones? I'm using a minimally modified sky theme 9some font sizes and colours changed) and I have Summernote editor (3.5.0) and simple blog(3.5.0)