WordPress.org

Ready to get started?Download WordPress

Forums

my plugin on new web host breaks (3 posts)

  1. wpfiddle
    Member
    Posted 1 year ago #

    I will be so greatful for someone to rescue me from this unexplainable situation!!
    Scenario:
    1. Wrote my own plug in .. a real simple plugin that when activated adds a widget option to add a textbox/button for signing up for an email newsletter (all the code is doing is inserting email in my database)... honestly simplest thing ever.
    2. Worked beautifully on my old web host
    3. Went to bluehost today with the same code and the plugin (I know its my plugin b/c when I delete it all is well) breaks wp-admin.. .the website itself works fine, but when I try to go to wpadmin it is just a blank page...

    how can this be? how do I find out what it bluehost doesnt like about my plugin code which was fine on old web host?

    ANY help appreciated!

  2. Abhishek Ghosh
    Member
    Posted 1 year ago #

    Went to bluehost today with the same code and the plugin (I know its my plugin b/c when I delete it all is well) breaks wp-admin.. .the website itself works fine, but when I try to go to wpadmin it is just a blank page...

    Just a single line line break added some how during transfer of php files can create problems. Usually a line break added during FTP transfer gives some specific HTTP error code. For white page, check the php error log files to get the line number and specific php file.

  3. bhpress
    Member
    Posted 1 year ago #

    On Bluehost your php errors are reported to a file called error_log, in the folder that caused the error. Also did you set your plugin to report it's errors using wp_debug? If so you can just change your wp-config.php to have true for wp_debug, which will make your errors print on the webpage instead of just showing a white screen.

Topic Closed

This topic has been closed to new replies.

About this Topic