Forum Replies Created

Viewing 15 replies - 16 through 30 (of 266 total)
  • Thread Starter ZeroGravity

    (@zerogravity)

    I found the issue. I had some code that removes the query strings from static resources. This removed the query strings when api.js was loaded by the plugin. I added an exception to the code and it works perfectly. πŸ™‚

    Thanks!

    Thread Starter ZeroGravity

    (@zerogravity)

    I apologize for the delay in getting back to you on this. Life has taken a few twists and turns.

    I installed the plugin on a test site and it worked perfectly but not on the live site. I will deactivate everything and test to see where the conflict is occurring.

    Thread Starter ZeroGravity

    (@zerogravity)

    Thanks!

    Thread Starter ZeroGravity

    (@zerogravity)

    Thanks for the information @ipstenu. I understand the difficulty but if a few change it makes life easier for the rest of us.

    I live by the mantra “If you don’t ask, you don’t give people the opportunity to say yes.” πŸ™‚

    Thread Starter ZeroGravity

    (@zerogravity)

    The doc page says “Add a new feed type like /atom1/.” I probably need a little clarification on what “like” actually means. πŸ™‚ Is atom1 the feedname?

    The header in the template function is
    header('Content-Type: '.feed_content_type('rss-http').'; charset='.get_option('blog_charset'), true);
    It gets set to “application/rss+xml”

    Checking the feedtype sent to β€œthe_feed_content,” it’s rss2.
    query_var[feed] is empty in β€œthe_feed_content” – "[feed] => "

    I needed to save the permalinks to refresh the rewrite rules.

    Thanks for you patience @bcworkz and sorry if I’m misunderstanding but I don’t feel I am any closer to identifying which feed is being processed when β€œthe_feed_content” is called. πŸ™

    Thread Starter ZeroGravity

    (@zerogravity)

    Thanks @bcworkz but I’m not actually looking for the Feed Type, but the Feed Name. This is my code to create the custom feed. The MC_newsletterRSS function sets the query conditions and has the template for the RSS output.

    add_action('init', 'zgwd1010_customRSS');
    function zgwd1010_customRSS(){
            add_feed('mc-newsletter', 'MC_newsletterRSS');
    }

    I’m looking for something like:

    add_filter('the_content_feed', 'zgwd1010_rss_inline_css');
    function zgwd1010_rss_inline_css($content) {
    
    	if ( 'mc-newsletter' == <<feedname>> ) {
    		// Do the magic
    	}
    	return $content;
    }

    If I use feed type then all feeds of that type will be processed by the filter. I only want this custom feed, “mc-newsletter,” to be processed. All other feeds, regardless of type, should be handled by WordPress default.

    • This reply was modified 4 years, 3 months ago by ZeroGravity. Reason: More information
    • This reply was modified 4 years, 3 months ago by ZeroGravity.
    Thread Starter ZeroGravity

    (@zerogravity)

    Thanks for your reply @jaysupport. It would be nice if this could be added as a feature in the settings or having a filter that would enable updating the iFrame source.

    I have made updates to plugin cores before and there is always that once where you forgot to reapply it. πŸ™‚

    Thread Starter ZeroGravity

    (@zerogravity)

    Thanks!

    Thread Starter ZeroGravity

    (@zerogravity)

    Thanks!

    Thread Starter ZeroGravity

    (@zerogravity)

    I should have kept reading. The plugin provides a filter so you can change the action hook that is used to display the icons. I added this to my core functionality plugin.

    /**
     * Move Shared Counts
     * @see http://sharedcountsplugin.com/2019/03/27/change-the-theme-location-for-share-buttons/
     *
     * @param array $locations
     * @return array
     */
    function be_shared_counts_location( $locations ) {
    	if ( is_woocommerce() ) {
    		// Before WC Product
    		$locations['before']['hook'] = 'woocommerce_before_single_product';
    		$locations['before']['filter'] = false;
    	
    		// After WC Product
    		$locations['after']['hook'] = 'woocommerce_after_single_product';
    		$locations['after']['filter'] = false;
    	}
    
    	return $locations;
    }
    add_filter( 'shared_counts_theme_locations', 'be_shared_counts_location' );
    Thread Starter ZeroGravity

    (@zerogravity)

    Thanks @rvola. My host has confirmed there is no way to change the date/time on the server for testing. πŸ™ I am at a loss. I don’t want to have to reset all those websites again next year.

    Thread Starter ZeroGravity

    (@zerogravity)

    Can you tell me where in the code the folder for the new year is created? Would like to add some logging code there for testing.
    Thanks!

    Thread Starter ZeroGravity

    (@zerogravity)

    Thanks @t-p, have done so. Their response was:

    “You should know that this problem is not caused by my extension, because it only puts an interface to program fields hidden by Automattic since version 3.5.”

    I think I’m going to have to see if there is a way to force the date back to 12/31/20 on a test cPanel account and recreate the issue. Sigh….

    Thread Starter ZeroGravity

    (@zerogravity)

    Thanks for your quick reply @rvola! I do love your plugin. πŸ™‚

    The testing scenario you mentioned won’t reproduce the issue. It only happens when the new year clicks over, i.e. the creating of the year folder – 2021 for example. Once I login to each cPanel account in January and reset the permissions all the subsequent folders (02, 03, 04 etc.) are created with the correct 755 permissions. Come the new year the wp-content and uploads folders return to 750 resulting in the year folder being created with 750. πŸ™ I logged into one of the accounts exhibiting the behavior and deleted the 2021 folder. When I accessed the website the 2021 folder was recreated with the correct 755 permissions. Getting more and more baffled!

    Are you using subdomains in the Full URL path to files setting?

    I know what the permissions should be and how to reset them so the links you provided don’t really help.

    The curious thing is, this only happens on the websites where I have your plugin installed. I did have a quick look through the plugin code but not being a complete expert in PHP didn’t know if I was missing something.

    I usually install WP on cPanel using the Softaculous app installer but turn off all the update and backup settings. My thought is if this is the issue it would happen with every site on my server.

    All the sites are running PHP 7.3+ and the latest versions of WP and plugins. Keeping these up to date I’m guessing any corrupted files would be replaced.

    I am going to asking my hosting provider if there is a way I can force the date/time back to 12/31/20 and see what happens.

    Thread Starter ZeroGravity

    (@zerogravity)

    I believe it maybe something to do with the WP Original Media Path plugin. It happens to all the sites where I have used this plugin. It the site doesn’t have the plugin installed it isn’t happening. Hmmmm. Not sure how to set the date/time on a shared hosting account to trip the new year for testing.

    I have posted a support request on the plugin page.

Viewing 15 replies - 16 through 30 (of 266 total)