ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Undefined index error when changing File upload prferencies

December 12, 2008 6:55am

Subscribe [2]
  • #1 / Dec 12, 2008 6:55am

    webprouk

    69 posts

    Hi

    I was trying to upload files to a directory I previously created and the upload screen was going blank, so I decided to have a look at the directory settings, when I try to update or create a new destination I get the following errors:

    Notice: Undefined index: name in .../cp.publish_ad.php on line 9589
    
    Notice: Undefined index: server_path in .../cp.publish_ad.php on line 9594
    
    Notice: Undefined index: url in .../cp.publish_ad.php on line 9599
    
    Notice: Undefined index: url in .../cp.publish_ad.php on line 9604
    
    Notice: Undefined index: url in .../cp.publish_ad.php on line 9604
    
    Notice: Undefined index: name in .../cp.publish_ad.php on line 9609

    How can I fix this?

    I am using version 1.6.3

    Thanks

  • #2 / Dec 12, 2008 10:38am

    Ingmar

    29245 posts

    This might simply be a matter of corrupted files. Please upgrade to the latest version of EE, ie EE 1.6.6 (which is a recommended security update, too), that should help us ruling out corrupted files.

  • #3 / Dec 12, 2008 11:33am

    webprouk

    69 posts

    I already upgraded and the errors are still there :(

  • #4 / Dec 12, 2008 11:37am

    webprouk

    69 posts

    Ok, I think it had to do with my php.ini file, I removed the changes and it is ok now, although I will have to increase the maximum upload size, hope that does not cause a problem

    Thanks

  • #5 / Dec 12, 2008 11:38am

    Ingmar

    29245 posts

    No, that should be fine. Let us know if you need further assistance, otherwise I’ll close this thread in a bit. You can always start a new one, of course 😊

  • #6 / Dec 12, 2008 12:09pm

    webprouk

    69 posts

    Thanks Ingmar,

    I don’t get the error but I went back to the initial problem, I cannot upload files into this directory, it takes ages to upload and at the end it does nothing or returns a MySQL error. I checked the file upload preferences and they are correct, the folder permissions, etc

    Also, if I try to browse the existing files, I get a blank screen.

    This was working before :(

  • #7 / Dec 12, 2008 12:43pm

    Ingmar

    29245 posts

    Just to make sure, the site works fine, but the file upload is not working, is that correct?

  • #8 / Dec 12, 2008 1:05pm

    webprouk

    69 posts

    Ok,

    I have done some more testing, everything works ok if I remove the php.ini file (where I set my maximum upload file) but it won’t let me upload more than 5Mb and I have files of 20Mb.

    This php.ini file is located in the main directory and contains the following:

    <?php
    memory_limit=32M;
    upload_max_filesize = 30Mb;
    post_max_size = 30Mb;
    ?>

    If I upload it, the website does not behave properly (it does not let me log in, prompts file permission messages, etc)

  • #9 / Dec 12, 2008 1:38pm

    Pascal Kriete

    2589 posts

    We’re slowly leaving EE and moving toward server configuration, so I may move this.

    If I recall it correctly, the php.ini file does not need the b’s in Mb.

    <?php
    memory_limit=32M;
    upload_max_filesize = 30M;
    post_max_size = 30M;
    ?>

    Also, the post_max_size includes the file so it should be a little larger than upload_max_filesize.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases