• Resolved JochenT

    (@jochent)


    Only on our staging server I encounter a fatal PHP error after upgrading to GravityExport v2.0.0. I did not encounter this problem on the development or production server. This is a bit strange as the staging server is almost identical to the production server.

    I’ve removed the plugin and reinstalled it as well as installed the older version 1.11.4 (which does not have the problem) and updated again to 2.0.0. All these attempts do not prevent the error.

    PHP 7.4, WP 6.2.2, GF 2.7.7
    Other installed GF related extension plugins:
    – Gravity Forms Advanced Conditional Shortcodes
    – Gravity Forms HubSpot Add-On
    – Gravity Forms Zero Spam

    The error log entry with stacktrace:

    [01-Jun-2023 19:23:17 UTC] PHP Fatal error: Uncaught GFExcel\Notification\Exception\NotificationRepositoryException: Notifications could not be stored. in /usr/www/xxxxx/wp-content/plugins/gf-entries-in-excel/src/Notification/Repository/NotificationRepository.php:78
    Stack trace: 0 /usr/www/xxxxx/wp-content/plugins/gf-entries-in-excel/src/Notification/Repository/NotificationRepository.php(65): GFExcel\Notification\Repository\NotificationRepository->createNewStoreException() 1 /usr/www/xxxxx/wp-content/plugins/gf-entries-in-excel/src/Notification/Manager/NotificationManager.php(147): GFExcel\Notification\Repository\NotificationRepository->storeNotification(Object(GFExcel\Notification\Notification)) 2 /usr/www/xxxxx/wp-content/plugins/gf-entries-in-excel/src/Migration/Migration/SingleFeedMigration.php(69): GFExcel\Notification\Manager\NotificationManager->storeNotification(Object(GFExcel\Notification\Notification)) 3 /usr/www/xxxxx/wp-content/plugins/gf-entries-in-excel/src/Migration/Manager/MigrationManager.php(88): GFExcel\Migration\Migration\SingleFeedMigration->run() 4 /usr/www/xxxxx/wp-content/plugins/gf-entries-in-excel/src/Migration/Manager/MigrationManager.php(71): GFExcel\Migration\Manager\MigrationManager->migrate() 5 /usr/www/xxxxx/wp-includes/class-wp-hook.php(308): GFExcel\Migration\Manager\MigrationManager->maybe_migrate('') 6 /usr/www/xxxxx/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) 7 /usr/www/xxxxx/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 8 /usr/www/xxxxx/wp-admin/admin.php(175): do_action('admin_init') 9 /usr/www/xxxxx/wp-admin/plugins.php(10): require_once('/usr/www/users/…') 10 {main} Next GFExcel\Notification\Exception\NotificationManagerException: Notifications could not be stored. in /usr/www/xxxxx/wp-content/plugins/gf-entries-in-excel/src/Notification/Manager/NotificationManager.php:149
    Stack trace: 0 /usr/www/xxxxx/wp-content/plugins/gf-entries-in-excel/src/Migration/Migration/SingleFeedMigration.php(69): GFExcel\Notification\Manager\NotificationManager->storeNotification(Object(GFExcel\Notification\Notification)) 1 /usr/www/xxxxx/wp-content/plugins/gf-entries-in-excel/src/Migration/Manager/MigrationManager.php(88): GFExcel\Migration\Migration\SingleFeedMigration->run() 2 /usr/www/xxxxx/wp-content/plugins/gf-entries-in-excel/src/Migration/Manager/MigrationManager.php(71): GFExcel\Migration\Manager\MigrationManager->migrate() 3 /usr/www/xxxxx/wp-includes/class-wp-hook.php(308): GFExcel\Migration\Manager\MigrationManager->maybe_migrate('') 4 /usr/www/xxxxx/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) 5 /usr/www/xxxxx/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 6 /usr/www/xxxxx/wp-admin/admin.php(175): do_action('admin_init') 7 /usr/www/xxxxx/wp-admin/plugins.php(10): require_once('/usr/www/users/…') 8 {main} thrown in /usr/www/xxxxx/wp-content/plugins/gf-entries-in-excel/src/Notification/Manager/NotificationManager.php on line 149

    • This topic was modified 1 year, 9 months ago by JochenT.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Doeke Norg

    (@doekenorg)

    Hi @jochent, Sorry to hear that.

    Does your staging site perhaps have any plugins or hooks that have to do with the transients? Something like a pre_transient or expiration_of_transient? This is where the notifications are stored; and it seems that something is not allowing this to happen.

    Or are you perhaps using a caching plugin that favors an object cache?

    In either case, I’m looking into it; and will try to release an update today.

    Kind regards,

    Doeke

    Plugin Author Doeke Norg

    (@doekenorg)

    @jochent I just released version 2.0.1. This should resolve the problems your having on staging.

    Kind regards,

    Doeke

    Thread Starter JochenT

    (@jochent)

    Hi Doeke, thanks for your fast response and the nice plugin.

    There was really a problem with the object cache. On the staging server object cache was activated to use the “Alternative PHP Cache (APC/ApCu)” method in plugin W3 Total Cache but on the hosting server this method was deactivated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal error: Notifications could not be stored’ is closed to new replies.