Page 2 of 2

Re: [CONTRIB] Maintenance Mode

Posted: Sun Apr 18, 2010 5:13 am
by Qphoria
sizzlingscience wrote:
I've installed the MOD but my maintenance page isn't showing too well
What does that mean? "too well" ? it either shows or it doesn't

Re: [CONTRIB] Maintenance Mode

Posted: Sun Apr 18, 2010 5:49 am
by sizzlingscience
Well the page loads but the formatting looks wrong, the Maintenance wording is below the container and there is a little square out of the top of the header in the top right hand side.

I've attached a screenshot. Hope it's simple to fix, as great MOD. Thank you.
screenshot.jpg

screenshot.jpg (25.33 KiB) Viewed 8307 times


Re: [CONTRIB] Maintenance Mode

Posted: Sun Apr 18, 2010 4:46 pm
by migz
Just edit the maintenance.tpl to fit with your theme

Re: [CONTRIB] Maintenance Mode

Posted: Mon Apr 19, 2010 11:02 pm
by sizzlingscience
migz wrote:Just edit the maintenance.tpl to fit with your theme
Thank you - managed to change it now.

Re: [CONTRIB] Maintenance Mode

Posted: Tue Apr 20, 2010 1:31 pm
by kedgetech
Excellent work. Good to have this when you are fixing something.

Re: [CONTRIB] Maintenance Mode

Posted: Mon May 24, 2010 8:39 pm
by mbaldock2001
Hi,

Does someone have the MaintenanceMode_OCv144.zip file listed above ?

The file above appears to be corrupt and fails to open. :(

Many thanks

Re: [CONTRIB] Maintenance Mode

Posted: Mon May 24, 2010 9:45 pm
by scanreg
does this work with 1.4.7 ?

Re: [CONTRIB] Maintenance Mode

Posted: Mon May 24, 2010 10:28 pm
by mbaldock2001
scanreg,

in theory, OCv144 contribs should work with v147 (especially those from Qphoric !).

i have v134 of the MaintenanceMode contrib and i'm eager to test/implement a more recent version with my OCv147 installation :) -- unfortunately, as i mentioned, the v144 file listed above does not open... :(

Re: [CONTRIB] Maintenance Mode

Posted: Mon May 24, 2010 11:55 pm
by Qphoria
Looks like the forum reinstall broke some stuff. Ok I've reuploaded it

Re: [CONTRIB] Maintenance Mode

Posted: Tue May 25, 2010 12:16 am
by mbaldock2001
Many thanks Q.

I guess i'm missing the maintenance.php files for v144... I have the files downloaded from MaintenanceMode v133-v134. All works fine in the Admin backend, but when Maintenance mode is enabled (set to 'Yes'), the storefront shows several errors.

EDIT:
I have made the following modifications (with my limited php knowledge) in an attempt to remedy the problem but am still getting an error.
This is the current content of my catalog/controller/common/maintenance.php file:

Code: Select all

<?php
class ControllerCommonMaintenance extends Controller {
    public function index() {
        $this->language->load('common/maintenance');
        
        $this->document->title = $this->language->get('heading_title');
        
        $this->data['charset'] = $this->language->get('charset');
        $this->data['language'] = $this->language->get('code');
        $this->data['direction'] = $this->language->get('direction');
        
        $this->data['title'] = $this->language->get('heading_title');
        
        $this->document->breadcrumbs = array();

        $this->document->breadcrumbs[] = array(
            'href'      => $this->url->http('common/maintenance'),
            'text'      => $this->language->get('text_maintenance'),
            'separator' => FALSE
        ); 
        
        $this->data['breadcrumbs'] = $this->document->breadcrumbs;
        $this->data['message'] = $this->language->get('text_message');
        
        //$this->template = $this->config->get('config_template') . 'common/maintenance.tpl';
        if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/maintenance.tpl')) {
            $this->template = $this->config->get('config_template') . '/template/common/maintenance.tpl';
        } else {
            $this->template = 'default/template/common/maintenance.tpl';
        }
        $this->children = array(
            'common/header',
            'common/footer'
        );          
        if ($this->config->get('config_guest_checkout') != null) {
            $this->response->setOutput($this->render(TRUE));
        } else {
            $this->render();
        }
    }
    
    public function check() {

        // Registry
        $registry = new Registry();

        if ($this->config->get('config_maintenance')) {
            // User
            if (file_exists(DIR_SYSTEM . 'helper/user.php')) {
                require_once(DIR_SYSTEM . 'helper/user.php');
            //    Registry::set('user', new HelperUser());
                $registry->set('user', new HelperUser());
            } else {
                require_once(DIR_SYSTEM . 'library/user.php');
            //    Registry::set('user', new User());
                $registry->set('user', new User($registry));
            }
            
            
            if (!$this->user->isLogged()) {
                return $this->forward('common/maintenance');
            }
        }
    }
}
?>
The error i am getting now is:

Code: Select all

Fatal error: Call to a member function isLogged() on a non-object in C:\wamp\www\store\catalog\controller\common\maintenance.php on line 60

Are there perhaps updated maintenance.php/.tpl files for v144 that i might have missed out on?

Thanks again.
M

Re: [CONTRIB] Maintenance Mode

Posted: Mon Jun 14, 2010 4:58 pm
by kcllc
There are no files in the zip apart from the readme.

Re: [CONTRIB] Maintenance Mode

Posted: Mon Jun 14, 2010 7:55 pm
by mbaldock2001
FYI, this is now part of the core with version 1.4.8...

with many thanks to Q :)

Re: [CONTRIB] Maintenance Mode

Posted: Sun Aug 15, 2010 5:39 pm
by mylo
Hello!

I wonder why the zip file attached to this thread in post http://forum.opencart.com/viewtopic.php?p=34965#p34965 contains only readme.txt file?

Need mainteinace mode for open cart v1.4.7

Thanks.

Re: [CONTRIB] Maintenance Mode

Posted: Mon Aug 16, 2010 12:19 am
by Qphoria
it says "manual steps"

Re: [CONTRIB] Maintenance Mode

Posted: Thu Aug 26, 2010 3:43 am
by robisrob
Is it possible to re-upload this contribution, because I still have version 1.4.0?
I don't had time yet to do an upgrade.

Thanks !!!!!

Re: [CONTRIB] Maintenance Mode

Posted: Thu Aug 26, 2010 4:29 am
by Qphoria
The steps are the same for all versions up to 1.4.6

Qphoria Help your contrib Maintenance Mode

Posted: Sat Feb 19, 2011 7:29 pm
by alfredo
Maintenance Mode
Qphoria wrote:This is another free one as I think it should be part of OpenCart.
Supported OpenCart Versions:
================
v1.2.6, v1.2.7, v1.2.8, v1.2.9, v1.3.0, v1.3.1, v1.3.2, v1.3.3, v1.3.4, v1.4.0, v1.4.4
Please Qphoria, could you please re-upload your contribution. Now only is the installation manual. I have an older version and would like to use your contribution.

Thanks.

Alfredo