Support » Plugin: Nelio Content - Social Media Marketing Automation » “PHP Fatal error” at wp-login.php

  • Resolved snicker_jp

    (@snickerjp)


    “PHP Fatal error” detected

    For example.

    1. logout from WordPress admin screen
    2. redirect wp-login.php
    3. error-log “PHP Fatal error” detected

    FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function is_plugin_active() in /XXXXX/wordpress/wp-content/plugins/nelio-content/includes/compat/pagefrog.php:27

    Suggestion:

    Function Reference/is plugin active

    
    --- pagefrog.20180620.php       2018-06-20 14:24:54.987287344 +0900
    +++ pagefrog.php        2018-06-20 14:44:50.016101756 +0900
    @@ -22,6 +22,7 @@
      *
      * @since 1.0.5
      */
    +include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     function nc_compat_pagefrog_fix_issues_with_post_page() {
    
            if ( ! is_plugin_active( 'pagefrog/pagefrog.php' ) ) {
    

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Aguilera

    (@davilera)

    Thanks for the heads up! Does this fix the issue too?

    
    --- includes/compat/pagefrog.php
    +++ includes/compat/pagefrog.php
    @@ -24,6 +24,10 @@ if ( ! defined( 'ABSPATH' ) ) {
      */
     function nc_compat_pagefrog_fix_issues_with_post_page() {
     
    +       if ( ! is_admin() ) {
    +               return;
    +       }//end if
    +
            if ( ! is_plugin_active( 'pagefrog/pagefrog.php' ) ) {
                    return;
            }//end if
    
    

    The function is only available in the admin screen (and the fix is only required there), so checking if we’re on the admin screen looks like a better solution than including plugin.php. If it fixes your issue, I’ll release a new version.

    snicker_jp

    (@snickerjp)

    Thanks for fix action, this issue fixed.

    thank you, Good Plugin.

    Plugin Author David Aguilera

    (@davilera)

    Great, thanks for reporting the bug!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“PHP Fatal error” at wp-login.php’ is closed to new replies.