PHP Warning in WP Backend (missing upgrade file perhaps?)
-
I believe there is an upgrade file missing from the ‘inc’ directory. There is a PHP Warning that popped up once I updated the plugin on a few sites.
I thought I’d point it out… especially since the call is already in there… and others may open up tickets.
Warning: include_once(inc/upgrade-notice.php): failed to open stream: No such file or directory in /home/XXXXX/public_html/wp-content/plugins/google-calendar-events/google-calendar-events.php on line 66
Warning: include_once(): Failed opening ‘inc/upgrade-notice.php’ for inclusion (include_path=’.:/opt/php54/lib/php’) in /home/XXXXX/public_html/wp-content/plugins/google-calendar-events/google-calendar-events.php on line 66
I believe this is the addition to the google-calendar-events.php file starting at line 57 causing the warning.. looking for the upgrade script in your new version 2:
// Show an upgrade warning notice to users for the 2.0.0 release function show_upgrade_notice() { if ( ! empty( $_REQUEST['gce-dismiss-install-nag'] ) ) { add_option( 'gce_show_upgrade_notice', 1 ); remove_action( 'admin_notices', array( $this, 'show_upgrade_notice' ) ); return; } include_once( 'inc/upgrade-notice.php' ); } function deactivate_plugin(){ delete_option( 'gce_show_upgrade_notice' ); }
Thanks!
*EDIT*
Sorry, meant to add that the ‘inc’ directory contains only the files below in the .73 version:
gce-event.php
gce-feed.php
gce-parser.php
php-calendar.php
- The topic ‘PHP Warning in WP Backend (missing upgrade file perhaps?)’ is closed to new replies.