Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)
  • This happened to my site too. I previously didn’t have WP Mail SMTP set up and emails worked fine. For some reason I had to install this plugin and add an email address (the previous sending address was a forward only email, and I set up WPMSMTP with a hosted email).

    That’s how my situation was fixed. Hope the insight proves helpful.

    Thread Starter darthambiguous

    (@darthambiguous)

    I fixed it! Appears to have been in a checkbox that didn’t relate to the new competition, so it hadn’t been double checked. Please ignore my original request.

    FYI – I love this plugin. You’ve done some incredible work here, and for a small non-profit organisation (the Outback Writers Festival) who I’m doing this work for, they couldn’t achieve what they need without a free plug-in like yours. So thank you Thank You THANK YOU!

    Thread Starter darthambiguous

    (@darthambiguous)

    Someone just posted the fix on the Elementor Community forum.

    It’s as simple as switching the Ongoing Experiments Favorite Widgets from ‘default’ to ‘inactive’.

    Elementor -> Settings -> Experiments – > Ongoing Experiments -> Favorite Widgets

    Thank you for all your help @andrewmrobbins – it’s greatly appreciated.

    Thread Starter darthambiguous

    (@darthambiguous)

    Hi @andrewmrobbins I hope they give you a commission for this!

    <?php
    namespace Elementor\Modules\Favorites\Types;
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly.
    }
    
    use Elementor\Modules\Favorites\Favorites_Type;
    use Elementor\Plugin;
    
    class Widgets extends Favorites_Type {
    	const CATEGORY_SLUG = 'favorites';
    
    	/**
    	 * Widgets favorites type constructor.
    	 */
    	public function __construct( array $items = [] ) {
    		parent::__construct( $items );
    
    		add_action( 'elementor/document/before_get_config', [ $this, 'update_widget_categories' ], 10, 1 );
    	}
    
    	public function get_name() {
    		return 'widgets';
    	}
    
    	public function prepare( $favorites ) {
    		return array_intersect( parent::prepare( $favorites ), $this->get_available() );
    	}
    
    	/**
    	 * Get all available widgets.
    	 *
    	 * @return string[]
    	 */
    	public function get_available() {
    		return (array) array_keys(
    			Plugin::instance()->widgets_manager->get_widget_types()
    		);
    	}
    
    	/**
    	 * Update the categories of a widget inside a filter.
    	 *
    	 * @param $document
    	 */
    	public function update_widget_categories( $document ) {
    		foreach ( $this->values() as $favorite ) {
    			Plugin::$instance->widgets_manager->get_widget_types( $favorite )
    				->set_config( 'categories', [ static::CATEGORY_SLUG ] );
    		}
    	}
    }
    Thread Starter darthambiguous

    (@darthambiguous)

    @andrewmrobbins

    public function update_widget_categories( $document ) {
    		foreach ( $this->values() as $favorite ) {
    			$types = Plugin::$instance->widgets_manager->get_widget_types( $favorite );
    				if (!empty($types)) {
    					$types->set_config( 'categories', [ static::CATEGORY_SLUG ] );
    			}
    		}
    	}
    Thread Starter darthambiguous

    (@darthambiguous)

    @andrewmrobbins you’re going above and beyond with your help. Thank you.

    Unfortunately it didn’t seem to work. Did I not copy it correctly?

    An error of type E_PARSE was caused in line 47 of the file /home/***/williamcrightonmusic.com.au/wp-content/plugins/elementor/modules/favorites/types/widgets.php. Error message: syntax error, unexpected ‘ public’ (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)

    Thread Starter darthambiguous

    (@darthambiguous)

    More info.

    I’ve seen an identical question asked in the Elementor Community site, so while I’m glad it’s not just me, it’s also an issue that should be looked at.

    Could anyone at @michellei confirm if the issue is being looked at?

    ---------- Forwarded message ---------
    From: DreamHost Customer Support Team <[email protected]>
    Date: Mon, 17 Jan 2022 at 10:22 pm
    Subject: Re: Elementor plug-in is causing fatal error
    
    Hello Stephen,
    
    I was able to find the log error generated. Please try to get in touch with Elementor and refer this error to them then get back to us so that we can help you resolve this issue.
    
    [Mon Jan 17 04:19:45.723645 2022] [fcgid:warn] [pid 284341:tid
    140632095471360] [client 130.105.135.20:60110] mod_fcgid: stderr: PHP
    Fatal error:  Uncaught Error: Call to a member function set_config() on
    null in
    /home/***/williamcrightonmusic.com.au/wp-content/plugins/elementor/modules/favorites/types/widgets.php:50,
    referer:
    https://williamcrightonmusic.com.au/wp-admin/post.php?post=12646&action=edit
    [Mon Jan 17 04:19:45.723787 2022] [fcgid:warn] [pid 284341:tid
    140632095471360] [client 130.105.135.20:60110] mod_fcgid: stderr: Stack
    trace:, referer:
    https://williamcrightonmusic.com.au/wp-admin/post.php?post=12646&action=edit
    [Mon Jan 17 04:19:45.723810 2022] [fcgid:warn] [pid 284341:tid
    140632095471360] [client 130.105.135.20:60110] mod_fcgid: stderr: #0
    /home/***/williamcrightonmusic.com.au/wp-includes/class-wp-hook.php(303):
    Elementor\\Modules\\Favorites\\Types\\Widgets->update_widget_categories(Object(Elementor\\Core\\DocumentTypes\\Post)),
    referer:
    https://williamcrightonmusic.com.au/wp-admin/post.php?post=12646&action=edit
    [Mon Jan 17 04:19:45.723841 2022] [fcgid:warn] [pid 284341:tid
    140632095471360] [client 130.105.135.20:60110] mod_fcgid: stderr: #1
    /home/***/williamcrightonmusic.com.au/wp-includes/class-wp-hook.php(327):
    WP_Hook->apply_filters('', Array), referer:
    https://williamcrightonmusic.com.au/wp-admin/post.php?post=12646&action=edit
    [Mon Jan 17 04:19:45.723870 2022] [fcgid:warn] [pid 284341:tid
    140632095471360] [client 130.105.135.20:60110] mod_fcgid: stderr: #2
    /home/***/williamcrightonmusic.com.au/wp-includes/plugin.php(470):
    WP_Hook->do_action(Array), referer:
    https://williamcrightonmusic.com.au/wp-admin/post.php?post=12646&action=edit
    [Mon Jan 17 04:19:45.723894 2022] [fcgid:warn] [pid 284341:tid
    140632095471360] [client 130.105.135.20:60110] mod_fcgid: stderr: #3
    /home/***/williamcrightonmusic.com.au/wp-content/plugins/elementor/core/base/document.php(550):
    do_action('elementor/docum...',
    Object(Elementor\\Core\\DocumentTypes\\Post)), referer:
    https://williamcrightonmusic.com.au/wp-admin/post.php?post=12646&action=edit
    [Mon Jan 17 04:19:45.723925 2022] [fcgid:warn] [pid 284341:tid
    140632095471360] [client 130.105.135.20:60110] mod_fcgid: stderr: #4
    /home/***/williamcrightonmusic.com.au/wp-content/plugins/elementor/includes/base/controls-stack.php(997):
    Elementor\\Core\\Base\\Document->get_initial_config(), referer:
    https://williamcrightonmusic.com.au/wp-admin/post.php?post=12646&action=edit
    [Mon Jan 17 04:19:45.723950 2022] [fcgid:warn] [pid 284341:tid
    140632095471360] [client 130.105.135.20:60110] mod_fcgid: stderr: #5
    /home/***/williamcrightonmusic.com.au/wp-content/plugins/elemento
    in
    /home/dh_2trbik/williamcrightonmusic.com.au/wp-content/plugins/elementor/modules/favorites/types/widgets.php
    on line 50, referer:
    https://williamcrightonmusic.com.au/wp-admin/post.php?post=12646&action=edit
    Thread Starter darthambiguous

    (@darthambiguous)

    Wordpress just sent this:

    `Error Details
    =============
    An error of type E_ERROR was caused in line 50 of the file /home/dh_2trbik/williamcrightonmusic.com.au/wp-content/plugins/elementor/modules/favorites/types/widgets.php. Error message: Uncaught Error: Call to a member function set_config() on null in /home/dh_2trbik/williamcrightonmusic.com.au/wp-content/plugins/elementor/modules/favorites/types/widgets.php:50
    Stack trace:
    #0 /home/dh_2trbik/williamcrightonmusic.com.au/wp-includes/class-wp-hook.php(303): Elementor\Modules\Favorites\Types\Widgets->update_widget_categories(Object(Elementor\Core\DocumentTypes\Post))
    #1 /home/dh_2trbik/williamcrightonmusic.com.au/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)
    #2 /home/dh_2trbik/williamcrightonmusic.com.au/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #3 /home/dh_2trbik/williamcrightonmusic.com.au/wp-content/plugins/elementor/core/base/document.php(550): do_action(‘elementor/docum…’, Object(Elementor\Core\DocumentTypes\Post))
    #4 /home/dh_2trbik/williamcrightonmusic.com.au/wp-content/plugins/elementor/includes/base/controls-stack.php(997): Elementor\Core\Base\Document->get_initial_config()
    #5 /home/dh_2trbik/williamcrightonmusic.com.au/wp-content/plugins/elemento

    Thread Starter darthambiguous

    (@darthambiguous)

    Hi @andrewmrobbins

    Annoyingly no. I’ve tried every variant.
    Elementor on, theme on, all other plugins off.
    Elementor on, theme off, all other plugins off.
    Elementor on, theme on, an extra plugin on.
    Etc

    Thread Starter darthambiguous

    (@darthambiguous)

    You are amazing. Thank you!

    Fingers crossed he sells a lot of merch so I can buy the pro version.

    Thread Starter darthambiguous

    (@darthambiguous)

    Using 4.1.1 the message is now

    cURL error 28: Connection timed out after 10000 milliseconds
    This occured while calling: ShopWP\API\Items\Products::get_total_collections_count on line 170

    Thread Starter darthambiguous

    (@darthambiguous)

    Hi @andrewmrobbins this must’ve slipped under the radar – do you recognise this error?

    Thread Starter darthambiguous

    (@darthambiguous)

    I should add:

    I’ve turned off all other plugins and it still had the same message.
    I’ve cleared cache / deleted old files.
    I’ve removed connection to the store and reconnected.

    Thread Starter darthambiguous

    (@darthambiguous)

    @andrewmrobbins you sir are an absolute legend. Thank you!

    Forum: Plugins
    In reply to: [ShopWP] Currency glitch

    Hi @andrewmrobbins, I’ve got the same issue. I asked a few days ago.
    https://ww.wp.xz.cn/support/topic/change-currency-display/

Viewing 15 replies - 1 through 15 (of 19 total)