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.

Can't Restore EE

March 03, 2014 10:31pm

Subscribe [4]
  • #1 / Mar 03, 2014 10:31pm

    houdini2232

    32 posts

    My hosting expired but I had a recent backup of my EE site. No matter what I try, I can’t get it to work.

    First, I try to restore my site, which runs EE 2.7.3.  When I do this the admin panel works just fine but every URL of the site says “The page you requested was not found.” This is an issue familiar to me but in the past I was able to (somehow) solve it: http://ellislab.com/forums/viewthread/243228/

    I then try to update my EE 2.7.3 site to EE 2.8.  After that’s done, the admin panel still works fine but now any page I try to visit on the front end of my site results in the following error:

    A PHP Error was encountered
    Severity: Notice
    Message: Undefined property: Channel::$query
    Filename: channel/mod.channel.php
    Line Number: 311

    Fatal error: Call to a member function num_rows() on a non-object in /path/to/my/site/system/expressionengine/modules/channel/mod.channel.php on line 311

    It looks like $this->query is a valid object up until $this->parse_channel_entries() is run on line 297 of mod.channel.php.

    Any ideas??

  • #2 / Mar 04, 2014 12:52am

    Did you restore the account to a different hosting provider? Check your .htaccess/web-server setup. If you’re getting 404 errors, it’s likely something has changed. I’m guessing you’ll likely removing index.php from URL’s and you haven’t restored/set-up mod_rewrite rules on the new host.

  • #3 / Mar 04, 2014 1:37am

    houdini2232

    32 posts

    It is a different account at the same host.  I’ve changed all of the server paths and my .htaccess file is updated properly.  I think something else is up, because why would an upgrade to 2.8 break the Channel module? (That 2.8 error happens when I use {exp:channel:entries} anywhere.)

    The .htaccess file:

    Order Deny,Allow
    Deny from all
    Allow from 24.13.104.226

    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /

      # Removes index.php from ExpressionEngine URLs
      RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
      RewriteCond %{REQUEST_URI} !/system_38eOdVQ/.* [NC]
      RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

      # Directs all EE web requests through the site index file
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ /index.php/$1 [L]

      # Redirect www urls to non-www
      RewriteCond %{HTTP_HOST} ^www\.mydomain.com [NC]
      RewriteRule (.*) http://mydomain.com/$1 [R=301,L]
    </IfModule>

    AddType application/vnd.ms-fontobject   .eot
    AddType application/x-font-ttf       .ttf
    AddType application/font-woff         .woff

    <FilesMatch “.(eot|ttf|otf|woff)”>
      Header set Access-Control-Allow-Origin “*”
    </FilesMatch>

  • #4 / Mar 04, 2014 8:50pm

    houdini2232

    32 posts

    A bit more info: I get the same “The page you requested was not found.” error even when I delete all tables out of the database.

  • #5 / Mar 06, 2014 3:26am

    ahmad saad

    364 posts

    can u remove the .htaccess file then try to access ur backend

  • #6 / Mar 06, 2014 8:23am

    houdini2232

    32 posts

    can u remove the .htaccess file then try to access ur backend

    If I delete the .htaccess file I can still access the control panel via /admin.php just fine.  Everything works fine in the control panel.  No pages on the front end of the site serve up at all.

  • #7 / Mar 06, 2014 8:53am

    ahmad saad

    364 posts

    A bit more info: I get the same “The page you requested was not found.” error even when I delete all tables out of the database.

    when u do this , are you able to login to CMS??

  • #8 / Mar 06, 2014 11:05am

    houdini2232

    32 posts

    A bit more info: I get the same “The page you requested was not found.” error even when I delete all tables out of the database.

    when u do this , are you able to login to CMS??

    No, then I get:


    Site Error: Unable to Load Site Preferences; No Preferences Found

    I thought it was related to a botched CodeIgniter file, but I’ve tried uploading several different version of the system/codeigniter folder and I keep getting the same error displaying.  Something must be corrupt with one or more of the EE files.  The problem is EllisLab doesn’t offer any past versions of EE for download so I’m sort of stuck.

    Someone ought to make a site where the past versions of EE core are available for download.

  • #9 / Mar 06, 2014 11:21am

    ahmad saad

    364 posts

    check ur pm.

    Regard’s.

  • #10 / Mar 06, 2014 11:36pm

    houdini2232

    32 posts

    Ahmad was able to help me out on this by pointing out I had outdated server paths in parts of the site that I wasn’t aware of.  A simple find and replace would have solved this and I’m embarrassed I didn’t think of it.

  • #11 / Mar 13, 2014 4:52pm

    jdeeburke

    2 posts

    I am getting the same error message after upgrading EE 2.4.0 to 2.8.0. Could you elaborate some more on your solution? I am not storing any absolute server paths so I don’t know how that would affect my setup.

  • #12 / May 20, 2014 3:01pm

    avroo

    164 posts

    Same error!

    Trying to update from 2.7.3 to 2.8.1.

    CMS works, but an empty template with only these tags:

    {exp:channel:entries channel="videos"}
    {title}
    
    {/exp:channel:entries}

    Generates this error:

    A PHP Error was encountered
    
    Severity: Notice
    
    Message: Undefined property: Channel::$query
    
    Filename: channel/mod.channel.php
    
    Line Number: 311
    
    Fatal error: Call to a member function num_rows() on a non-object in /var/www/site.com/system/expressionengine/modules/channel/mod.channel.php on line 311

    Anyone ???

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

ExpressionEngine News!

#eecms, #events, #releases