Home Forums WordPress Plugins Hide My WP Plugin not working after wordpress reinstall

This topic is: not resolved

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21772
    jh52847
    Post count: 4

    I had problem in error type 500 so I had to deactiave, reinstall ,reactivate all plugins
    and it worked fine but I had to delete all code from load.php file because it gave me following error.

    Fatal error: Cannot redeclare wp_get_server_protocol() (previously declared in /home1/jh52847/public_html/wp-includes/load.php:16) in /home1/jh52847/public_html/load.php on line 21

    after deleting code from load.php file my website and other plugin works fine
    but I still see my plugin when I click view source. (settings are all correct that I could see ext previously)

    Is it because I deleted code from load.php file?

    if so how can I edit this file so that I no longer see those error message?

    This is exact same file that I used to include in my load.php (coudn’t upload onto your server)
    https://drive.google.com/open?id=1bVs4RGHD47P3R2FyYebfY_Lx1UhRA13r

    • This topic was modified 2 years, 10 months ago by jh52847.
    • This topic was modified 2 years, 10 months ago by jh52847.
    #21780
    Suman M.
    Post count: 12478

    Hi, it’s not recommended to modify any of the WP core file.

    Fatal error: Cannot redeclare wp_get_server_protocol() (previously declared in /home1/jh52847/public_html/wp-includes/load.php:16) in /home1/jh52847/public_html/load.php on line 21

    >> Here, it seems like load.php is included twice.
    – /public_html/wp-includes/load.php
    – /public_html/load.php

    load.php should only be there in /public_html/wp-includes/ directory. Please check you wordpress installation.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.