Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Dec 2012
    Location
    Middle Tennessee
    Posts
    7
    Plugin Contributions
    0

    Default Re: Admin page is almost blank

    Here is what Chrome's console reports that includes/menu.js file has a bug on line 335:

    Uncaught TypeError: Cannot read property 'childNodes' of null

    Lines 330-342 read by default as follows:

    var menudiv = document.getElementById('menuid');

    // ul
    var ul = new Array();
    for (i = 0; i < menudiv.childNodes.length; i++)
    {
    node = menudiv.childNodes[i];
    if (node.nodeName.toUpperCase() == 'UL')
    {
    ul[ul.length] = node;
    }
    }

    If I comment out those lines, the page won't load either. Also, I did a search through the files inclusive with admin/index.php and none of them reference a div with the ID "menuid."

    Any Ideas?

  2. #12
    Join Date
    Apr 2009
    Posts
    417
    Plugin Contributions
    2

    Default Re: Admin page is almost blank

    I have the same issue On my live site. I have reverted back to 1.5.1 with a 1.5.3 database. The strange thing is that it runs fine on my test server? I have seen some posts about leaving old file. But If i put the files back on to the test server it all stil runs. I do not get an error file produced. Not sure if the menu.js is a red herring. The function semes to exit correctly.

    Any one any other ideas on this?
    Mark Brittain
    http:\\innerlightcrystals.co.uk\sales\

  3. #13
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Admin page is almost blank

    Quote Originally Posted by Legolas View Post
    .....

    <td class="headerBarContent" align="left">
    &nbsp; </td>
    <td class="headerBarContent" align="center">
    Monday 28 Jul 2014 05:59:13 PM&nbsp;-0500 GMT&nbsp;[162.000.000.00]<br />
    Look at your file

    admin/includes/header.php

    At around line 235 you see

    PHP Code:
    echo '<br />'
    and this is where your script stops.

    Upload that file admin/includes/header.php again to eliminate any file corruption issue. If it works now then all is good.

    If not, comment out the next line

    PHP Code:
    echo @shell_exec('hostname'); //what server am I working on? 
    to read

    PHP Code:
    //echo @shell_exec('hostname'); //what server am I working on? 

  4. #14
    Join Date
    Apr 2009
    Posts
    417
    Plugin Contributions
    2

    Default Re: Admin page is almost blank

    Thanks for that. That was the issue my if I took the @ off I got a warning "Warning: shell_exec() has been disabled for security reasons..." I have replaced

    @shell_exec('hostname')

    with

    gethostname()

    This works for me. Thanks again for the heads up.
    Mark Brittain
    http:\\innerlightcrystals.co.uk\sales\

  5. #15
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,475
    Plugin Contributions
    88

    Default Re: Admin page is almost blank

    Nice diagnosis and solution!

  6. #16
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Admin page is almost blank

    Quote Originally Posted by brittainmark View Post
    ....warning "Warning: shell_exec() has been disabled for security reasons..."......
    Thought that was the case. Thanks for the update that this is now working for you.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 Blank home page, blank admin page
    By jpwy in forum General Questions
    Replies: 6
    Last Post: 12 Apr 2016, 05:51 PM
  2. v150 Blank Admin - Cannot access admin page
    By stangirl in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 6 Mar 2012, 08:31 PM
  3. Admin/Tools/Admin settings gives a Blank Page
    By RobertG in forum Basic Configuration
    Replies: 3
    Last Post: 26 Feb 2010, 03:16 PM
  4. blank admin page admin/index.php
    By stevejohnson in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 8 Jun 2006, 05:07 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR