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.

Blank Entries in Control Panel (edit or add new entry)

January 12, 2011 9:06am

Subscribe [5]
  • #1 / Jan 12, 2011 9:06am

    richhayler

    53 posts

    I am running EE 2.1.3 build 20101220 (and am experiencing the problem described below) but noticed the same issue in the previous build which is what prompted me to update to the latest as soon as it was available.

    Occasionally when clicking on any entry in the “Edit Channel Entries” section within the EE control panel the “Edit Entry” page displays without any data - i.e. just blank fields. This also happens occasionally when adding a new entry.

    What i’ve noticed is that if you navigate to the “Edit Channel Entries” page and as soon as you can select and entry (i.e. before the page has completely loaded) this results in the subsequent edit entry page displaying without any data much more frequently - almost every time.

    The other thing i have noticed is that in Safari v5.0.3 the browser status bar shows a message “loading http:.... completed 7 of 8 items” and never actually fully completes i.e. 8 of 8. This happens all of the time and I suspect may be having some impact on the issue with the entry data not being displayed occasionally.

    I have reinstalled all of my EE files three times now (including the upgrade to the latest build) but it doesn’t solve my problem.

    I have created a new channel and new custom field without any plugins, i.e. Playa, Matrix or Wygwam to remove the possibility of the problem being caused by an EE addon but this has been to no avail.

    Any ideas??

  • #2 / Jan 12, 2011 5:54pm

    Ingmar

    29245 posts

    Can you try with extensions fully disabled? When you disable them globally the settings are kept so you can turn them back on again after testing.

  • #3 / Jan 12, 2011 6:14pm

    richhayler

    53 posts

    Hi Ingmar,

    I’ve just tried this but no difference. I still get the “loading ....” message that displays in Safari and I’m also experiencing edit entry pages that have no data displayed (easily reproduced by clicking on an entry in the “entries” page before the page has finished loading completely).

  • #4 / Jan 13, 2011 7:42am

    Sue Crocker

    26054 posts

    Hi, mhayler. Is this a Safari only issue? What happens with Firefox or Chrome?

    Have you seen: EEWiki:// HowTo Determine Memory Limits

    -and-

    EEWiki:// HowTo Override Memory Limitations

    How much memory is allocated to PHP?

  • #5 / Jan 13, 2011 8:03am

    richhayler

    53 posts

    Hi Sue,

    My main browser is Safari but I can definitely confirm i’m experiencing the same problem on Chrome 8.0.552 and Firefox 3.6.13

    However in Firefox in addition to the problem described above I also received the following EE error message twice when clicking on an entry in the entries page (before the entries page had fully loaded):

    “An Error Was Encountered

    You are not authorized to access this page”

    When this happens I click on the back button in the browser and then click on the same entry on the entries page and it then loads as it should in the “edit entry” page. Very strange :(

    I have checked how much memory is allocated to PHP and it’s 32M. I have increased this to 64M and rebooted my server (I have a dedicated virtual server with MediaTemple) but it hasn’t made an difference to resolving the problem.

    If I create a new channel, new custom field group and then a new custom field but don’t use any 3rd part field types (and disable extensions) is any 3rd party code (from addons) included in the new or edit entry page that could be causing this problem?

  • #6 / Jan 13, 2011 5:43pm

    Greg Salt

    3988 posts

    Hi rmhayler,

    We have had a similar issue reported before with a Media Temple server. Do you have an .htaccess file for this site and if so what does it contain. Do you have any additional caching rules in place on this server?

    Cheers

    Greg

  • #7 / Jan 13, 2011 8:26pm

    richhayler

    53 posts

    Hi Greg,

    Thanks for trying to help me out.

    I do have the following .htaccess file on the server - am using Newism’s .htaccess generator. I do want to add that I wasn’t having these problems on 2.1.1 before I upgraded to v2.1.3 build. Since upgrading from 2.1.1 I haven’t changed any server settings at all.

    What I might try (although I desperately want to try to avoid it), is install a new EE site on the same server with no add ons and see if I can reproduce the problem. I will then install each add-on individually and test between to see if I can pinpoint what is causing the issue. It’s going to be a bit of a pain but may help me get to the bottom of it. Incidentally, do you know of anyway I can find out what is causing Safari to constantly show “loading… (x-1) of x completed” on the single entry page (new and edit entry)? something is definitely going wrong here and I wish there was a way I could see what asset or particular file the browser is getting hung up on.

    # -- NSM .htaccess Generator Start --
    # .htaccess generated by NSM .htaccess Generator v1.0.2
    # @see: <a href="http://expressionengine-addons.com/nsm-htaccess-generator">http://expressionengine-addons.com/nsm-htaccess-generator</a>
    
    # secure .htaccess file
    <Files .htaccess>
     order allow,deny
     deny from all
    </Files>
    
    # EE 404 page for missing pages
    ErrorDocument 404 /index.php/error/404
    
    # Simple 404 for missing files
    <FilesMatch "(\.jpe?g|gif|png|bmp|css|js|flv)$">
      ErrorDocument 404 "File Not Found"
    </FilesMatch>
    
    # Although highly unlikely, your host may have +FollowSymLinks enabled at the root level, yet disallow its addition in .htaccess; in which case, adding +FollowSymLinks will break your setup (probably a 500 error), so just remove it, and your rules should work fine.
    Options +FollowSymlinks
    RewriteEngine On
    RewriteBase /
    
    # remove the www - Uncomment to activate
    # RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
    # RewriteRule ^(.*)$ http://%1/$1 [R=301,NC,L]
    
    # Remove the trailing slash to paths without an extension
    # Uncomment to activate
    # RewriteCond %{REQUEST_URI} /$
    # RewriteCond %{REQUEST_FILENAME} !-d
    # RewriteRule ^(.+)/$ $1 [L,R=301]
    
    # Remove index.php
    # Uses the "include method"
    # <a href="http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method">http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method</a>
    RewriteCond %{QUERY_STRING} !^(ACT=.*)$ [NC]
    RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} ^/(something|somethingelse|P[0-9]{2,8}) [NC]
    RewriteRule (.*) /index.php/$1 [L]
    
    # -- NSM .htaccess Generator End --
    
    # The following is for Mint
    # AddType application/x-httpd-php .html .htm
    # php_value auto_prepend_file /.../auto.php

    As far as I know I don’t have any particular caching rules in place.

  • #8 / Jan 13, 2011 8:31pm

    richhayler

    53 posts

    Give me a minute - I need to correct the .htaccess file I included above…sorry.

  • #9 / Jan 13, 2011 8:36pm

    richhayler

    53 posts

    Ok, i’ve corrected my mistake - please could you delete this and my previous post.

  • #10 / Jan 13, 2011 8:56pm

    richhayler

    53 posts

    Ok Greg, I think i may have made a breakthrough…

    If the “entries” page hasn’t quite finished loading and i click on the first entry in the list the url in the browser is the following…

    http://......?S=0&D=cp&C=content_publish&M=entry_form&channel_id=19&entry_id=0

    ...and the actual resulting page displayed is the “NEW entry” page as entry_id =0 does not exist!

    In contrast, if i wait for the “entries” page to fully load and then click on the same entry the following url is followed to the edit entry page and everything works as expected.

    http://.......?S=0&D=cp&C=content_publish&M=entry_form&channel_id=19&entry_id=245

    The key difference is the entry_id being passed in the querystring.

    To add - if I click on the second entry displayed in the list on the “entries” page and do this before the page has fully loaded the URL is..

    http://......?S=0&D=cp&C=content_publish&M=entry_form&channel_id=19&entry_id=1

    Following this link results in an EE error message being displayed instead stating that i’m not authorised to access the page.

  • #11 / Jan 13, 2011 8:59pm

    richhayler

    53 posts

    I do still get the incomplete loading message displayed in the Safari status bar in both cases though and definitely wasn’t seeing this in 2.1.1

  • #12 / Jan 13, 2011 9:04pm

    richhayler

    53 posts

    Just checked and i can confirm that on the “entries” page - all entries are being allocated an initial entry_id in ascending order from 0,1,2,3.. etc. Once the page is fully loaded the entry_id for each entry’s edit link URL is updated to reflect the true entry_id. Hope that makes sense.

  • #13 / Jan 14, 2011 3:06pm

    Sue Crocker

    26054 posts

    Can you test also without an .htaccess file?

  • #14 / Jan 23, 2011 9:46am

    richhayler

    53 posts

    I deleted the .htaccess file and can confirm that I am still experiencing the same issues.

  • #15 / Jan 24, 2011 3:30am

    John Henry Donovan

    12339 posts

    rmhayler,

    The delay in having the Edit entry links properly populate is a known issue to the devs. The solution for now is to wait a few seconds on your edit page before clicking through to a new entry.

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

ExpressionEngine News!

#eecms, #events, #releases