Post by Qphoria » Sun Apr 18, 2010 5:13 am

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

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by sizzlingscience » Sun Apr 18, 2010 5:49 am

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 6824 times


New member

Posts

Joined
Tue Jan 12, 2010 6:03 am

Post by migz » Sun Apr 18, 2010 4:46 pm

Just edit the maintenance.tpl to fit with your theme

Active Member

Posts

Joined
Mon Feb 01, 2010 2:13 am

Post by sizzlingscience » Mon Apr 19, 2010 11:02 pm

migz wrote:Just edit the maintenance.tpl to fit with your theme
Thank you - managed to change it now.

New member

Posts

Joined
Tue Jan 12, 2010 6:03 am

Post by kedgetech » Tue Apr 20, 2010 1:31 pm

Excellent work. Good to have this when you are fixing something.
Last edited by kedgetech on Sun Aug 22, 2010 10:37 am, edited 1 time in total.

User avatar
Active Member

Posts

Joined
Mon Mar 22, 2010 5:20 pm
Location - USA, Australia, India

Post by mbaldock2001 » Mon May 24, 2010 8:39 pm

Hi,

Does someone have the MaintenanceMode_OCv144.zip file listed above ?

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

Many thanks

OC v1.4.9.1
(dev:)WampServer v2.0: Apache 2.2.11, PHP 5.3.0, MySQL 5.1.36
(prod:) Apache , PHP 2.10.0.2, MySQL 5.1.37


Newbie

Posts

Joined
Sun Mar 14, 2010 3:27 am
Location - Paris, France

Post by scanreg » Mon May 24, 2010 9:45 pm

does this work with 1.4.7 ?

Active Member

Posts

Joined
Thu May 06, 2010 12:15 am

Post by mbaldock2001 » Mon May 24, 2010 10:28 pm

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... :(

OC v1.4.9.1
(dev:)WampServer v2.0: Apache 2.2.11, PHP 5.3.0, MySQL 5.1.36
(prod:) Apache , PHP 2.10.0.2, MySQL 5.1.37


Newbie

Posts

Joined
Sun Mar 14, 2010 3:27 am
Location - Paris, France

Post by Qphoria » Mon May 24, 2010 11:55 pm

Looks like the forum reinstall broke some stuff. Ok I've reuploaded it

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mbaldock2001 » Tue May 25, 2010 12:16 am

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

OC v1.4.9.1
(dev:)WampServer v2.0: Apache 2.2.11, PHP 5.3.0, MySQL 5.1.36
(prod:) Apache , PHP 2.10.0.2, MySQL 5.1.37


Newbie

Posts

Joined
Sun Mar 14, 2010 3:27 am
Location - Paris, France

Post by kcllc » Mon Jun 14, 2010 4:58 pm

There are no files in the zip apart from the readme.

New member

Posts

Joined
Mon Sep 07, 2009 9:48 pm

Post by mbaldock2001 » Mon Jun 14, 2010 7:55 pm

FYI, this is now part of the core with version 1.4.8...

with many thanks to Q :)

OC v1.4.9.1
(dev:)WampServer v2.0: Apache 2.2.11, PHP 5.3.0, MySQL 5.1.36
(prod:) Apache , PHP 2.10.0.2, MySQL 5.1.37


Newbie

Posts

Joined
Sun Mar 14, 2010 3:27 am
Location - Paris, France

Post by mylo » Sun Aug 15, 2010 5:39 pm

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.

Newbie

Posts

Joined
Sun Aug 15, 2010 5:34 pm

Post by Qphoria » Mon Aug 16, 2010 12:19 am

it says "manual steps"

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by robisrob » Thu Aug 26, 2010 3:43 am

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 !!!!!

New member

Posts

Joined
Mon Jan 25, 2010 12:29 am

Post by Qphoria » Thu Aug 26, 2010 4:29 am

The steps are the same for all versions up to 1.4.6

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by alfredo » Sat Feb 19, 2011 7:29 pm

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

Newbie

Posts

Joined
Thu Feb 17, 2011 12:21 am
Who is online

Users browsing this forum: No registered users and 3 guests