Carlos Cid

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
Feb 2, 2021 at 6:08 pm
#145909
Participant
Carlos Cid
OP

This is not required. I have already found the problem and a workaround.

Deactivating and re-activating the plugin fix the problem, as it triggers the code:

            $installer->addColumn('ahm_download_stats', 'version', 'varchar(255) NOT NULL');
            $installer->addColumn('ahm_download_stats', 'agent', 'TEXT');
            $installer->addColumn('ahm_download_stats', 'filename', 'TEXT');

On Installer::updateDB() and this code creates the missing columns.

Anyway I would suggest you to investigate why this code didn’t run during the plugin upgrade process.

Thanks for indirectly pointing me out the solution 😉

Feb 2, 2021 at 5:14 pm
#145901
Participant
Carlos Cid
OP

Any update?

A fix for me can be the ALTER TABLE statement that was missed during the upgrade process.

I wouldn’t like to create a fork to fix my installation.

Many thanks.

Jan 29, 2021 at 8:16 am
#145538
Participant
Carlos Cid
OP

WP 5.6

PHP 7.3.19

I think the problem is that in the last upgrade of the plugin, the upgrade process is not upgrading the ahm_download_stats table structure.

Viewing 3 posts - 1 through 3 (of 3 total)