• Hi!

    I haven’t made any changes to my blog (not even a new post) in the past few days and today I woke up to errors ๐Ÿ™

    On the main page (and other pages) I see:

    Warning: Division by zero in /home/extrapay/public_html/blog/wp-config.php on line 32
    
    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/extrapay/public_html/blog/wp-config.php:1) in /home/extrapay/public_html/blog/wp-content/themes/Divi/header.php on line 1

    I can’t even login to the wp-admin because that page displays an error as well:

    Warning: Division by zero in /home/extrapay/public_html/blog/wp-config.php on line 32
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/extrapay/public_html/blog/wp-config.php:1) in /home/extrapay/public_html/blog/wp-includes/pluggable.php on line 1178

    Can anyone please help me with that?
    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter alexs464

    (@alexs464)

    Ok, I guess I solved the issue by myself.

    I am clueless about PHP and all that, so I started reading some WP documentation. Everything pointed to the line 32 in my wp-config file.

    I opened that file with Notepad++ and looked at line 32:
    define(โ€˜UPLOADSโ€™, โ€˜/home/extrapay/public_html/blog/wp-content/uploadsโ€™);

    I remember adding that line manually as suggested by some tech, because I had hard time uploading images to my blog. This solution worked for 3 months or so and all of the sudden caused these errors.

    I simply deleted that line from my wp-config.php and everything seems to work fine now.

Viewing 1 replies (of 1 total)
  • The topic ‘Warning: Division by zero ERROR’ is closed to new replies.