• Resolved Daniel

    (@gabu69)


    Recently I installed PHP Compatibility Checker plugin to check if all my plugins where compatible with PHP 7.

    Your plug in displays these Warnings/Errors:

    FILE: /var/www/SITE.com/public_html/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc/nxs_snap_class.php
    ———————————————————————————————————————————–
    FOUND 1 ERROR AFFECTING 1 LINE.
    ———————————————————————————————————————————–
    234 | ERROR | Using ‘break’ outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0
    ———————————————————————————————————————————–

    • This topic was modified 8 years, 4 months ago by Daniel.
Viewing 3 replies - 16 through 18 (of 18 total)
  • Well, it is of course not possible to follow these instructions exactly because I can’t get access to the back-end to deactivate both plugins.

    However, I moved the main plugin directory, deactivated the Helper, readded the code, moved the plugin back and was then able to reactivate both plugins.

    So it is now working. ?? Thank you for all your help.

    FILE: /home/engin/public_html/wp-content/themes/web_portalv2/widgets/widgets.php
    --------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
    --------------------------------------------------------------------------------
     2 | WARNING | Function dl() is deprecated since PHP 5.3
     2 | WARNING | Function dl() is deprecated since PHP 5.3
    --------------------------------------------------------------------------------
    
    FILE: /home/engin/public_html/wp-content/themes/web_portalv2/functions.php
    --------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------------------
     12 | WARNING | Function name "__gc" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    --------------------------------------------------------------------------------------------------------------------------------------

    how ? repeair this warning ??

    Plugin Author NextScripts

    (@nextscripts)

    sahintan, I am sorry but why you are asking here? That warning is clearly coming from web_portalv2 WordPress theme. You should ask the developers of that theme.

    This is not related to SNAP at all.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Error in PHP7’ is closed to new replies.