jrxpress
Forum Replies Created
-
Forum: Plugins
In reply to: [ManageWP Worker] Fatal error with PHP 8.1I was able to get it temporary fixed by simple editing line 31 in \wp-content\plugins\worker\src\MWP\WordPress\Context.php from:
$this->context = &$GLOBALS;
to
$this->context = &$GLOBALS[null];
this is my temporary fix until they provide a new updated version, perhaps as &$GLOBALS[”]; or &$GLOBALS[‘blog_id’]; and this one I decided to use that seems to work fine &$GLOBALS[null];
I hope it helps anyone else with this same issue with PHP 8.1 update
Forum: Plugins
In reply to: [ManageWP Worker] Fatal error with PHP 8.1I am also looking for an answer regarding the PHP 8.1 fix, for the &$GLOBALS; issue.
Forum: Plugins
In reply to: [CS Popup Maker] Popup SettingsI was able to fix it and here is my code just in case someone else has the same issue. Just update the cs-popup-maker.php file with the code bellow:
if ( ! defined( 'ABSPATH' ) ) exit; define( 'CSP_VERSION', '1.0.1' ); define( 'CSP_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) ); define( 'CSP_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) ); if ( !class_exists( 'casqrPopupInit' ) ) { class casqrPopupInit { public function __construct() { if ( is_admin() ) { require_once( CSP_PLUGIN_DIR . '/includes/Admin.class.php' ); new csPopupSettings(); } else { add_action('wp', array( $this, 'show_popup' ) ); } } public function enqueue_scripts() { $min = ''; if( defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ) { $min = '.min'; } wp_register_style( 'cspopup-style', CSP_PLUGIN_URL.'/css/cs-popupmaker'. $min . '.css', array(), CSP_VERSION ); wp_enqueue_style( 'cspopup-style' ); wp_register_script( 'cspopup-main-script', CSP_PLUGIN_URL.'/js/cs-main-script'. $min . '.js', array( 'jquery', 'underscore' ), CSP_VERSION ); wp_enqueue_script( 'cspopup-main-script'); # Localize the script with new data wp_localize_script( 'cspopup-main-script', 'cs_obj', $this->localized_script() ); } public function show_popup() { global $wp_query; $post_id = $wp_query->post->ID; $cspopup = get_option('cs-popup'); $flag = 0; if ( isset($cspopup['cs_popup_status']) && $cspopup['cs_popup_status'] == 1 ) { if ( $cspopup['cs_popup_page'] != '' ){ if ( $cspopup['cs_popup_page'] == -1 ){ $flag = 1; } else { if ( $cspopup['cs_popup_page'] == 0 && ( is_home() || is_front_page() ) ) { $flag = 1; } else if ( $post_id == $cspopup['cs_popup_page'] ) { $flag = 1; } } } } if ( $flag == 1 ) { add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); } } public function localized_script() { $cspopup = get_option( 'cs-popup' ); $cspopup_settings = array(); $cspopup_settings['cs_popup_status'] = ( isset($cspopup['cs_popup_status'] ) && 1 == $cspopup['cs_popup_status'] ) ? 1 : 0; $cspopup_settings['image_url'] = $cspopup['cs_popup_image']; $cspopup_settings['target_url'] = $cspopup['cs_popup_target']; $cspopup_settings['close_link'] = CSP_PLUGIN_URL.'/images/close.png'; return $cspopup_settings; } } } new casqrPopupInit();
- This reply was modified 5 years, 5 months ago by jrxpress.
Forum: Fixing WordPress
In reply to: How to increase media file upload limit in wordpress site?the correct way is to save it as .user.ini and upload into your public_html …
Forum: Fixing WordPress
In reply to: error checkouti recently had the same issue with that
PHP Fatal error: Call to undefined method WC_Gateway_Authorize_DPM::icon() in /home/USER/public_html/store/wp-content/themes/kinetico/woocommerce/checkout/review-order.php on line 263
let me know if you still needs help and i will advice you about that !!
Junior