• Resolved lannyca

    (@lannyca)


    I have three separate WP installs that use Newsletter and all three have a problem with WP Register since the WP upgrade yesterday. All have WP 4.5.3 and each of them have Newsletter 4.2.2, 4.2.4 and 4.5.4 respectively. Two of them just bring up nothing other than the dashboard with a colored background for the normal WP Register screen and one shows an error on the WP Registration page which seems to indicate that an incorrect file name has been specified:

    Warning: require(/home2/lannyca/public_html/wildingplus1/wp-content/plugins/newsletter/unnamed-file.wp/index.php): failed to open stream: No such file or directory in /home2/lannyca/public_html/wildingplus1/wp-content/plugins/newsletter/includes/module.php on line 562

    Fatal error: require(): Failed opening required ‘/home2/lannyca/public_html/wildingplus1/wp-content/plugins/newsletter/unnamed-file.wp/index.php’ (include_path=’.:/opt/php54/lib/php’) in /home2/lannyca/public_html/wildingplus1/wp-content/plugins/newsletter/includes/module.php on line 562

    https://www.ads-software.com/plugins/newsletter/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter lannyca

    (@lannyca)

    The problem seems to be in the menu_page function in the module.php file in the includes directory. My guess is that the new WP version had a change in the sanitize_file_name function so that a string representing a file name without an extension is now returned as “unnamed-file.” concatenated to the string instead of just returning the string. So that is why it returns “unnamed-file.wp” instead of “wp”. This is then used by the REQUIRE statement which is supposed to include the index.php from the WP subdirectory but instead fails.

    When can we get a fix for this? This is making my three sites unuseable.

    Plugin Author Stefano Lissa

    (@satollo)

    wp has not changed that function that function is probably overwritten by another plugin. i already experienced that with badly written plugin.

    to solve that the only way is to find the plugin creating the issue and ask the author to fix it.

    there is a specific code that I can run in a wp to find out which plugin is filtering the original version of wp function

    Thread Starter lannyca

    (@lannyca)

    So is there a way that you can run that code to identify the plugin or can provide that code to me so that I can do so? Thanks for your response.

    Thread Starter lannyca

    (@lannyca)

    I did a grep on the plugins directory and see the following statement:

    ./updraftplus/admin.php: public function sanitize_file_name($filename) {

    Which seems to be redefining the function. Have I identified the problem plugin?

    Thread Starter lannyca

    (@lannyca)

    Nope, the error code including “unnamed-file” does not come from the updraft version. That code comes from the formatting.php file in includes. Could there be another WP change that causes the code in the WP version of the sanitize_file_name function to insert the “unnamed-file”?

    `if ( false === strpos( $filename, ‘.’ ) ) {
    $mime_types = wp_get_mime_types();
    $filetype = wp_check_filetype( ‘test.’ . $filename, $mime_types );
    if ( $filetype[‘ext’] === $filename ) {
    $filename = ‘unnamed-file.’ . $filetype[‘ext’];
    }
    }`

    The same problem(

    I have the same problem after upgrading to 4.5.3.
    Stefano, your suspect about “badly written plugin” sounds really strange to me because I actually downloaded a fresh and clean install of wp 4.5.3, then installed just the newsletter plugin and the “wp-registration” setting page fails requiring the unnamed-file.wp exactly as my production site with several plugin installed.
    So actually seems that your plugin is not fully compatible with 4.5.3.
    Do you plan to provide a fix or just drop the full compatibility with the latest version?

    Thank you.

    In the plug-in page I still see “Compatible up to: 4.5.3”, that might be mostly true, but there’s a backend option completely broken (experienced and tested by few people), so I think it’s a bit unfair keep that compatibility information after reading this topic.
    I voted for incompatibility between wp 4.5.3 and newsletter 4.5.4, and I suggest other people experiencing this issue with a clean wp install to do the same.
    Of course we should thank the developer(s) to this free plugin release, and probably nobody expects instant fixes for free products, but would be very useful, at least for those that uses that option, to just KNOW if the developer(s) plans to give a check to this issue.

    Thank you again.

    Plugin Author Stefano Lissa

    (@satollo)

    Hi thank you, I’m better checking the wp code. I initially suspected a plugin because I corrected at least three plugins till now which was breaking the sanitize file name function.

    Will get back asap with a new version.

    Stefano.

    Plugin Author Stefano Lissa

    (@satollo)

    Ok, wp seems a new extension checked by WP… it’s the mime type of WordPerfect (I wonder if it can be really new…).

    Anyway a patch is needed of course, I’ll try to release it tonight.

    Stefano.

    Thread Starter lannyca

    (@lannyca)

    Stefano,

    That is fantastic. Not only to we appreciate your wonderful plugin, but also your dedication to keeping it maintained. I am sure that I represent many who find your efforts commendable. I will look into your profession extension.

    Lanny

    Plugin Author Stefano Lissa

    (@satollo)

    Version 4.5.5+ should definitively fix that issue. Thank you for your report!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘WP Registration Error’ is closed to new replies.