-
Also Demo Importer doesn’t finish.
I’m assuming I need to use this plugin for the theme to work?
WP 5.8.2
Ex Watch Theme 1.6Warning: require_once(/wordpress/wp-content/plugins/pixtheme-custom//post-fields.php): failed to open stream: No such file or directory in /www/wp-content/themes/exproduct/library/core/admin/index.php on line 74 Fatal error: require_once(): Failed opening required ‘/wordpress/wp-content/plugins/pixtheme-custom//post-fields.php’ (include_path=’.:/usr/share/php’) in /www/wp-content/themes/exproduct/library/core/admin/index.php on line 74 Notice: Trying to access array offset on value of type bool in /wordpress/wp-includes/class-wp-recovery-mode-email-service.php on line 351 Notice: Trying to access array offset on value of type bool in /wordpress/wp-includes/class-wp-recovery-mode-email-service.php on line 352
The problem was the theme code was unable to import the PixTheme php file.
Fixed by changing lines 72-74 of themes/exproduct/library/core/admin/index.php to
if (class_exists(‘PixthemeCustom’)) {$pixtheme_plugin_dir = WP_PLUGIN_DIR .’/pixtheme-custom/’;require_once($pixtheme_plugin_dir.’post-fields.php’);}Using WP_PLUGIN_DIR instead of ABSPATH.
I added patch to child theme
Attachments:
You must be logged in to view attached files.I also fixed the import error
Lines 98-101 of themes/exproduct/library/theme/importer.php
$path_to_wp = ABSPATH; //Changed from other invalid path
require_once( $path_to_wp.’wp-load.php’ );
require_once( $path_to_wp.’wp-includes/functions.php’);Patch in child theme
Attachments:
You must be logged in to view attached files.Hi.
Please provide me ftp and admin access so that we can check what the reason is .
Thanks
ShortPixel 1.2 Plugin causing critical error when installed/activated
This topic is: not resolved
Viewing 7 posts - 1 through 7 (of 7 total)