• Resolved stesa

    (@stesa)


    Hi,

    I just install fresh wordpress v.4.0 , and notice the memory limit on the uploading page is: 2M. So I did what I do every time after installation of WP, open the wp-config.php and add two lines at the end :
    define( ‘WP_MEMORY_LIMIT’, ‘1024MB’ );
    define( ‘WP_MAX_MEMORY_LIMIT’, ‘1024MB’ );
    I also have php.ini with changed parameters for memory …
    Do not have any custom theme, just standard 3 theme that comes with installation, do not have any added plugins …
    After increasing the memory , I got :
    Warning: Cannot modify header information – headers already sent by (output started at /home/user/public_html/site-name/wp-config.php:1) in /home/user/public_html/site-name/—-.php on line —–
    changing different files, folders, lines, from wp-login to pluggable …
    It is the same, even I delete two lines for memory on the wp-config.
    I cannot login to admin.
    Any one know why is this happening ? Never happened before , didn’t have this problems with earlier versions. What should I do ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    Well, first of all that’s the code to increase the memory/RAM available to WordPress, not increase the upload limit, two different things. ??

    Second of all, that code has been obsolete for quite some time.

    First, remove the code you added to wp-config.php.

    Now, the maximum upload size is controlled at the server-level, not by WordPress. Here are three ways you can increase the upload limit:

    1. If you can edit or override the system php.ini file, increase the maximum file and post sizes. For example, upload_max_filesize = 100M ; and post_max_size = 100M ;

    2. If you cannot edit or override the system php.ini file, add php_value upload_max_filesize 100M and php_value post_max_size = 100M to your .htaccess file.

    3. If neither of these work, it’s time to ask your hosting provider to increase the maximum file and post sizes on your account. Keep in mind that most decent hosting providers allow this, and If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider.

    (in the above examples, the limit is set to 100MB)

    Thread Starter stesa

    (@stesa)

    Hi MacManX,

    Thank you for the answer. Actually I wrote that I already have the php.ini with the changed parameters to increased memory. I wrote that I had removed the two lines of code in wp-config, and it did not help. I even renamed the php.ini to php.ini_bak, to see if it would help, but didn’t.
    But thanks for your answer anyway ??

    Thread Starter stesa

    (@stesa)

    In a case that someone read this …

    I was wondering what is between the lines mentioned : on a line 418 and 431 … Revolves around the header and cookies …
    So I delete all cookies from my browser and that resolve problem with login to wp admin , and there is no more Wornings ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fresh installation of wp 4.00 – errors , cannot login after increasing the memor’ is closed to new replies.