Carlos Cid

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
in reply to: Error while tracking download stats #145909

Carlos Cid
Participant

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 ๐Ÿ˜‰

in reply to: Error while tracking download stats #145901

Carlos Cid
Participant

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.

in reply to: Error while tracking download stats #145538

Carlos Cid
Participant

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)