Forum Replies Created

Viewing 15 replies - 1 through 15 (of 22 total)
  • Same problem for me, it seems related to the last MailPoet update and not necessarily caused by a conflict with other plugins (we don’t have TagDiv).

    First click on Select other image Media Library does not open, clicking again on Select other image Chrome console log says:

    Uncaught TypeError: Cannot read properties of undefined (reading ‘reset’)

    in

    mailpoet/assets/dist/js/newsletter_editor.js?ver=4.31.0

    Full error log here


    WordPress version is 6.3.2
    MailPoet version is 4.31.0
    MailPoet Premium version is 4.31.0

    Plugin Author Claudio Simeone

    (@mrbrown)

    Thank you very much for the review!

    Plugin Author Claudio Simeone

    (@mrbrown)

    Thank you kitchin,
    I fixed the issues, Soon I’ll release the new version.

    Thanks again and merry christmas

    Thanks cavemonkey50,

    it seems that the original get_bloginfo function (not hooked to init) creates the conflict only with certain parameters.

    atom_url
    comments_atom_url
    comments_rss2_url
    description
    name
    rdf_url
    rss2_url
    rss_url

    Just for info, all parameters related to RSS Feeds generate a different error:

    Fatal error: Call to a member function get_feed_permastruct() on a non-object in ...

    The strange thing is that the title parameter in the Codex does not exists, so all get_bloginfo('title') calls should be replaced with get_bloginfo('name')

    Anyway Dale, one of the WPtouch authors, answered to me that they look into it soon, so until they fix the problem we at least have a patch.

    Bye!

    Hi,

    I’ve found the problem in WPtouch. It’s caused not by hardcoded mysql queries, but by these rows right at the top of the wptouch.php file:

    $bnc_option = get_option('bnc_iphone_pages');
    if ($bnc_option == null) {
    	$defaults = array();
    	$defaults['header-background-color'] = '222222';
    	$defaults['header-title'] = '' . get_bloginfo('title') . ''; // this one
    }

    the row with get_bloginfo('title'). If you comment it, it works.

    Maybe the cause is that this code is not contained in a function hooked to a WP API.

    In fact, if you wrap those lines in a function, and you hook to init filter it works:

    function bnc_myWPT(){
    $bnc_option = get_option('bnc_iphone_pages');
    	if ($bnc_option == null) {
    		$defaults = array();
    		$defaults['header-background-color'] = '222222';
    		$defaults['header-title'] = '' . get_bloginfo('title') . '';
    	}
    }
    
    add_filter('init', 'bnc_myWPT');

    Tomorrow I’ll send an email to the plugin author to report the issue (he didn’t answered to me yet).
    Hope it helps!

    Cavemonkey50 you’re right.
    This afternoon I made other tests on the conflict between WPTouch and Podcasting plugin, with a clean install of WP 2.3.5. No other plugins installed (no akismet, no hello dolly), default theme, no permalinks set. Only Podcasting and WpTouch.
    I tried with latest versions of both plugins and I found where the
    problem happens.
    Podcasting plugin uses this hook to modify the blog name in the Rss Feed:

    add_filter('option_blogname', 'podcasting_blogname_filter');

    the function is:

    // Change the podcast title
    function podcasting_blogname_filter($title) {
           if ( 'podcast' == get_query_var('feed') ) {
           // [cut]
           }
           return $title;
    }

    when you activate WPTouch, the get_query_var function does not work. In fact, if you comment the hook this way

    // add_filter('option_blogname', 'podcasting_blogname_filter');

    everything works fine.
    I noticed too the non standard use of DB queries, but I didn’t try because I thought that was something related to WPT plugin hooks.
    I wrote also an email to the WPTouch author, meanwhile I will try to patch the non standard queries.

    Thanks for your reply!

    Ok, I made a test with a clean install of WP 2.3.5. No plugins installed (no akismet, no hello dolly), default theme, no permalinks set. Only Podcasting and WpTouch.

    These are the steps:
    1st attempt
    I installed Podcasting 2.0b4 and WPTouch 1.4.
    Activated Podcasting, OK.
    Activated WPTouch: Fatal error: …

    Deactivated both

    2nd attempt (same plugin versions)
    Activated WPTouch, OK.
    Activated Podcasting: Fatal error: …

    Upgraded both plugins (respectively to 2.0b7 and 1.5 version), I made the same steps as above with upgraded versions, but the problem still remains.

    The same error happened to me on a 2.6.3 WP version. It seems there’s a conflict with other plugins. In my case was the Podcasting plugin, 2.0b4 version. My suspect is that there’s a conflict with the WP query made by Podcast to create a podcast feed, but I’ve no elements to confirm this.
    I wrote an email on 10/28 to the WPtouch plugin authors to report the bug and they answered “we’ll look into it”.
    Today they released a new version, but at the moment I don’t know if this problem was fixed. I will make a test later.
    Do you also have installed the Podcast plugin or something similar that creates / modifies WP query?

    Forum: Fixing WordPress
    In reply to: setcookie problem

    I’have the same problem with wp 2.6.3.
    setcookie does not work.

    Thread Starter Claudio Simeone

    (@mrbrown)

    Ok, I think it finally works! These are the steps:

    – Added two lines in .htaccess:
    RewriteCond %{HTTP:Cookie} !^.*(my_cookie_key_).*$
    just after
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$

    – I made a copy of searchengine.php, changing some function names to avoid conflicts with the original plugin, and saved it in the /wp-super-cache/plugin/ folder;

    – I made no changes to the file wp-cache-phase1.php. The wp_cache_get_cookies_values() function is the original (I don’t know if I need to replace / modify the wp-cache-phase1.php file as you wrote here, but I noticed that in the original function there’s the do_cacheaction hook, not present in the other one)

    – activated both WP Cache and Super Cache
    – activated my new Cache Plugin

    OK, now when I set my custom cookie active, I can see additional links while I visit my pages. This is OK.
    When I delete the cookie, I can’t see additional links. This is very OK.

    But, I noticed that cache files are yet created also if I have the cookie active. It seems a sort of “personal” cache that works only for me. I see additional links while other users don’t. Is this correct, or the cookie should exclude me totally from the caching?

    Thank you for all the patience
    🙂

    if you don’t want to use custom fields, you can use the excerpt field to attach an additional text to every post.

    it’s a strange question 🙂
    you can write a plugin with a function hooked up to the publish_post action

    function my_custom_field($post_id){
    add_post_meta($post_id, 'my_key', 'my_value');
    }
    add_action('publish_post', 'my_custom_field');
    Thread Starter Claudio Simeone

    (@mrbrown)

    thanks donncha,
    I’ll try to write a plugin based on searchengine.php included in wp-super-cache without any modifications.

    Just 2 questions: to test this new plugin, 1) both WP Cache and Super Cache can be enabled or I need to disable Super Cache?
    and 2) I need to delete the cache every time I test the script?
    I have the impression that once a page is cached, the wp-cache-phase1.php is not loaded more…

    I think that a brief tutorial about cacheaction functions will be very useful. I’ve read your readme.txt but a working example would be great 😉 if I get it to work, I’ll write something about.
    Anyway, your plugin is very good and thank you very much for the help.

    i think that the plugin is not compatible with WP 2.5.x versions

    Thread Starter Claudio Simeone

    (@mrbrown)

    Thanks for the tip. So, can I set the values this way?
    Expire time: 5 days (in seconds)
    Super Cache Expire time: 10 days

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