Zen Cart Logo
Forums / Addon Templates / Westminster New

Westminster New

Views: 494,232

Results 1,401 to 1,420 of 1,865
5 Jan 2017, 6:50 PM
#1401
spminis avatar

spminis

Zen Follower

Join Date:
Feb 2015
Location:
USA
Posts:
194
Plugin Contributions:
0

Westminster New

DrByte:

Can you post the contents of that config file? Sounds like there's wrong syntax in the file.

<?php
if (!defined('IS_ADMIN_FLAG')) {
  die('Illegal Access');
} 

$autoLoadConfig[999][] = array(
  'autoType' => 'init_script',
 'loadFile' => 'init_westminster_new.php' ;-) 

home/spmini5/public_html/teststore/includes/auto_loaders/config.westminster_new.php on line 8

This is the original content. I haven't changed anything.

Carol

5 Jan 2017, 7:11 PM
#1402
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Westminster New

That line 8 definitely has a syntax problem.

It shouldn't be a smiley:

 'loadFile' => 'init_westminster_new.php[B]' ;-)[/B]

It should end with .php'); like this:

 'loadFile' => 'init_westminster_new.php[B]');[/B]
5 Jan 2017, 7:24 PM
#1403
spminis avatar

spminis

Zen Follower

Join Date:
Feb 2015
Location:
USA
Posts:
194
Plugin Contributions:
0

Re: Westminster New

DrByte:

That line 8 definitely has a syntax problem.

It shouldn't be a smiley:

'loadFile' => 'init_westminster_new.php[B]' ;-)[/B]

> 
> 
> It should end with .php'); like this:
> ```
 'loadFile' => 'init_westminster_new.php[B]');[/B]

I dunno how it was downloaded that way. Thanks, I'll try it while putting the hair back on my head that I've been pulling out.

Carol

5 Jan 2017, 9:05 PM
#1404
spminis avatar

spminis

Zen Follower

Join Date:
Feb 2015
Location:
USA
Posts:
194
Plugin Contributions:
0

Re: Westminster New

I changed the file. It now looks like this:

<?php if (!defined('IS_ADMIN_FLAG')) { die('Illegal Access'); } $autoLoadConfig[999][] = array( 'autoType' => 'init_script', 'loadFile' => 'init_westminster_new.php'); Same problem. As soon as I upload the file to admin/includes/ auto_loaders/ the website shows up but the admin page is a blank. Carol
5 Jan 2017, 10:14 PM
#1405
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Westminster New

I downloaded the westminster_new template about 3 weeks ago, and the code in my file reads:

<?php
if (!defined('IS_ADMIN_FLAG')) {
  die('Illegal Access');
} 

$autoLoadConfig[999][] = array(
  'autoType' => 'init_script',
  'loadFile' => 'init_westminster_new.php'
);

I have now installed it on about 5 of our sites, and the install has been flawless... A few minor issues after the install, but the actual install went without a hitch.

Where did you get your copy of the template? I download from Anne's site (picaflor azul) - not from ZC plugins.

5 Jan 2017, 10:25 PM
#1406
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Westminster New

dremhmrk2:

You're very right about Godaddy but I have tied hands regarding the host.

If you're using ZC to operate a business - which is what people usually use it for - then you need to make decisions that are good for the business. If your host (probably the most important of your long-term business partners) is incapable of setting up their systems to work flawlessly for you, then the host must go... to me, it's that plain and simple.

Some years ago I got involved in a thread discussion where some poor soul was having ongoing issues with GoDaddy... The discussion went on for some weeks - and I just thought... Here's this guy, spending hours (turning into days, and then weeks), doing his mind in because he won't abandon a poor host because he paid a year's hosting in advance.

Now... I don't know how much time he spent on his machine, but the fact that the discussion went on for weeks suggests he put in a considerable amount of time to try to get his site to work. Assuming his time is worth $30 / hour, if he spent 50 hours messing about, he burned $1500 - AND his site was not raking in revenues to pay for it.

A bad host can cost you much more than their hosting fees. They can cost you your business.

5 Jan 2017, 11:11 PM
#1407
spminis avatar

spminis

Zen Follower

Join Date:
Feb 2015
Location:
USA
Posts:
194
Plugin Contributions:
0

Re: Westminster New

schoolboy:

I downloaded the westminster_new template about 3 weeks ago, and the code in my file reads:

<?php if (!defined('IS_ADMIN_FLAG')) { die('Illegal Access'); } $autoLoadConfig[999][] = array( 'autoType' => 'init_script', 'loadFile' => 'init_westminster_new.php' ); ``` > > I have now installed it on about 5 of our sites, and the install has been flawless... A few minor issues after the install, but the actual install went without a hitch. > > Where did you get your copy of the template? I download from Anne's site (picaflor azul) - not from ZC plugins. I downloaded it from the zencart.com site. I don't know where the file was located. I installed the template to a clean install of ZC except that I used my current database. There may be something in my db that's causing the issue. I could try installing the template before putting uploading my db but then I may not be able to use it in my live store so it would be a waste of time. I copied your code and uploaded the file and again, I can't access my admin page. I'm officially giving up. There's other templates I can use. Thanks for the help. Carol
5 Jan 2017, 11:53 PM
#1408
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Westminster New

spminis:

...I can't access my admin page.

There should be an error message in the "logs" folder... what does that say?

And what do you mean by "access" ? Are you getting a blank screen? or does the login password not work? Or does the screen vibrate violently? You need to be more specific...

6 Jan 2017, 7:04 AM
#1409
spminis avatar

spminis

Zen Follower

Join Date:
Feb 2015
Location:
USA
Posts:
194
Plugin Contributions:
0

Re: Westminster New

schoolboy:

There should be an error message in the "logs" folder... what does that say?

And what do you mean by "access" ? Are you getting a blank screen? or does the login password not work? Or does the screen vibrate violently? You need to be more specific...

Thanks for trying to help. It is appreciated.

First of all, I did what was suggested and downloaded the program directly from the author's website rather than from the forum. I deleted all the files from the previous install and reinstalled it.
Same problem. I was able to log into my admin page and when I switched templates, I received an "error refresh page" (or something like that) and it wouldn't go beyond that.

The debug message was:
"[06-Jan-2017 01:43:59 America/New_York] Request URI: /teststore/seveN-bAS-slEpt/, IP address: 73.193.252.97
#1 trigger_error() called at [/home/spmini5/public_html/teststore/includes/classes/db/mysql/query_factory.php:167]
#2 queryFactory->show_error() called at [/home/spmini5/public_html/teststore/includes/classes/db/mysql/query_factory.php:139]
#3 queryFactory->set_error() called at [/home/spmini5/public_html/teststore/includes/classes/db/mysql/query_factory.php:266]
#4 queryFactory->Execute() called at [/home/spmini5/public_html/teststore/seveN-bAS-slEpt/includes/installers/westminster_new/1_3.php:239]
#5 include_once(/home/spmini5/public_html/teststore/seveN-bAS-slEpt/includes/installers/westminster_new/1_3.php) called at [/home/spmini5/public_html/teststore/seveN-bAS-slEpt/includes/init_includes/init_westminster_new.php:21]
#6 require(/home/spmini5/public_html/teststore/seveN-bAS-slEpt/includes/init_includes/init_westminster_new.php) called at [/home/spmini5/public_html/teststore/includes/autoload_func.php:48]
#7 require(/home/spmini5/public_html/teststore/includes/autoload_func.php) called at [/home/spmini5/public_html/teststore/seveN-bAS-slEpt/includes/application_top.php:171]
#8 require(/home/spmini5/public_html/teststore/seveN-bAS-slEpt/includes/application_top.php) called at [/home/spmini5/public_html/teststore/seveN-bAS-slEpt/index.php:10]

[06-Jan-2017 01:43:59 America/New_York] PHP Fatal error: 1062:Duplicate entry 'configZenLightbox' for key 'page_key' :: INSERT INTO admin_pages (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order)VALUES
('configZenLightbox', 'BOX_CONFIGURATION_ZEN_LIGHTBOX', 'FILENAME_CONFIGURATION', CONCAT('gID=',@cgi), 'configuration', 'Y', @cgi); ==> (as called by) /home/spmini5/public_html/teststore/seveN-bAS-slEpt/includes/installers/westminster_new/1_3.php on line 239 <== in /home/spmini5/public_html/teststore/includes/classes/db/mysql/query_factory.php on line 167"

I deleted the config_westminster_new.php file and was able to switch to the westminster template with no problem and there were no debug messages.
The configuration file has the following content:

<?php /** * config.display_mode.php * * @package initSystem * @copyright Copyright 2003-2012 Zen Cart Development Team * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * Added by rbarbour (ZCAdditions.com), Responsive DIY Template Default for 1.5.x (65) */ if (!defined('IS_ADMIN_FLAG')) { die('Illegal Access'); } $autoLoadConfig[115][] = array('autoType'=>'init_script', 'loadFile'=> 'init_display_mode.php'); Carol
6 Jan 2017, 3:18 PM
#1410
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

Re: Westminster New

I've had similar problems in the past installing new picaflor templates. In my case it turned out that starting with a clean file set wasn't sufficient - I had to clean up my database - previous templates installed mods in the db that weren't used on new template, or used differently, and as they were still present were interfering with new template . In my case the carousel mod was the culprit one time. There was something with colorbox duplicate entries another time. Amongst others. Its unfortunate that there isn't an 'uninstall sql' for the templates that removes these things. However, it didn't take me long to look through phpMyAdmin config and configu_group and admin_pages to identify and remove the culprits. On the first go I deleted a few too many, but that's what backups are for.

Not sure if this is relevant to your situation, but I throw it out there just in case. (The ref to lightbox in your log error brought this to mind.)

6 Jan 2017, 3:39 PM
#1411
spminis avatar

spminis

Zen Follower

Join Date:
Feb 2015
Location:
USA
Posts:
194
Plugin Contributions:
0

Re: Westminster New

soxophoneplayer:

I've had similar problems in the past installing new picaflor templates. In my case it turned out that starting with a clean file set wasn't sufficient - I had to clean up my database - previous templates installed mods in the db that weren't used on new template, or used differently, and as they were still present were interfering with new template . In my case the carousel mod was the culprit one time. There was something with colorbox duplicate entries another time. Amongst others. Its unfortunate that there isn't an 'uninstall sql' for the templates that removes these things. However, it didn't take me long to look through phpMyAdmin config and configu_group and admin_pages to identify and remove the culprits. On the first go I deleted a few too many, but that's what backups are for.

Not sure if this is relevant to your situation, but I throw it out there just in case. (The ref to lightbox in your log error brought this to mind.)

Thanks for your input.
You're probably correct and I did think about that because after I did a clean install of ZC, I then uploaded the db from my live store. I thought about experimenting by installing the template without uploading the db. The problem is that if it works, I would still have a problem installing the template in my live store and frankly, I don't want to mess with that db and I don't want to bother going through the trouble of doing so.

Carol

6 Jan 2017, 3:56 PM
#1412
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Westminster New

Could we get an 'official' answer regarding the most stable version?

The Westminster_New available from the ZC Plugins section or the version available from the Anne's website?

The file dates are more recent in the ZC plugins version but there seems to be a few people that are having better 'success' using the version with older dated files which is available from Anne's website download.

6 Jan 2017, 6:22 PM
#1413
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Westminster New

spminis:

Thanks for your input.
You're probably correct and I did think about that because after I did a clean install of ZC, I then uploaded the db from my live store. I thought about experimenting by installing the template without uploading the db. The problem is that if it works, I would still have a problem installing the template in my live store and frankly, I don't want to mess with that db and I don't want to bother going through the trouble of doing so.

Carol

Westminster_new is a lot more detailed and "complex" than picaflor's earlier templates. There is a lot more activity going on behind the scenes, and it looks like there are a lot of conflicts going on with the way your original site is communicating with the database, and then having to cope with more detailed westminster_new template. Much of this is caused by old plugins that are either edits of some core files, or have redundant overrides.

We had a look at the basic structure and much of the code in the westminster_new template and decided to REMOVE practically every plugin we were using on the original site (both front-end and admin plugins), before implementing this new template.

After a couple of days, and much discussion, we decided to (on a dev server), a completely fresh install of ZC:1.5.5b (a few days later to become ver.c then ver.d) - with a fresh and empty database - as if we were "starting for the first time"..

Then, we looked for ESSENTIAL plugins compatible witn 1.5.x (for admin & front-end) and installed these. So we still had a totally empty site (no products, no customer data, no transaction data.)

Then, we matched up (as far as we could) the ADMIN configurations that existed in the old "live" site, with the new "dev" site... This included all the parameters in the "configuraton" menu, along with payment and shipping modules. We loaded up sitemap.xml, Ceon URI re-write, Google Merchant Center, EasyPopulate V4, Export Shipping Orders, CK Editor.

When we had the new dev site configured as closely as possible to the working, original site, we did database dumps of both sites' databases and did a very careful analysis of the tables. Many plugins make changes to the dbase, and we found that even after using uninstall.sql files, many tables were in a "mess". (Fortunately, we have fairly good MySql skills available).

Then... we TRUNCATED all the tables in the dbase relating to products, customers, addresses, orders, ... In other words, all tables where PRODUCT, CUSTOMER and TRANSACTIONAL data is stored (and cross-referenced). To do this, one needs to know the relational nature of the various tables, so it's not something a novice should attempt.

Then we INSERTED the data from the live (now under maintenance) stores database, into the NEW store database - thereby transferring all customer and product-related data from the old site, to the new site.

I must stress this is NOT for novices... One tiny error in a Dbase ID number, and you are in a total mess.

Then... better part of a day doing testing. Apart from a few minor glitches (oversights really), the new site "replaced" the old site just 72 hours later, with a total "down for maintenance" time of just over an hour.

6 Jan 2017, 6:29 PM
#1414
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Westminster New

Just to add... When we load a plugin, we always look at any SQL parameters to see what tables are going to be modified by the plugin. We make a note of these in the website's "manual logbook" - hand-written (or printed out notes) that we archive. We use these notes for all maintenance, upgrade and plugin install activity. By knowing what tables are altered, we can get a better idea of the likelihood of potential conflicts that may arise, if php code tries to make calls to a table (field) that is either no longer there, or may have undergone some change or other.

8 Jan 2017, 9:07 PM
#1415
littleangell52 avatar

littleangell52

Zen Follower

Join Date:
Jan 2016
Location:
Merstham Surrey United Kingdom
Posts:
102
Plugin Contributions:
0

Re: Westminster New

Hi There,

I just installed Westminster New template to my store and I lost all sideboxes when I installed the template. I downloaded it from Zencart forums. I can't understand where I went wrong? Plus is there a way I can add information and more information to the tabs? Oh and by the way, before you say did you update the sideboxes the answer is yes. I have also done a screen shot of what I can see via chrome.

Attachment 16873

8 Jan 2017, 10:00 PM
#1416
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Westminster New

LittleAngell52:

Hi There,

I just installed Westminster New template to my store and I lost all sideboxes when I installed the template. I downloaded it from Zencart forums. I can't understand where I went wrong? Plus is there a way I can add information and more information to the tabs? Oh and by the way, before you say did you update the sideboxes the answer is yes. I have also done a screen shot of what I can see via chrome.

Attachment 16873

When a new template is installed you must RESET the layout boxes. They will not appear as you had them so you need to reconfigure their location and sort orders.

Additionally, this template blocks side boxes on the home page - irrespective of the setting you make under the configuration >>> layout settings options.

You need to edit out the blocker in the templates tpl_main_page.php file,

if ($this_is_home_page) {
  $flag_disable_right = true;
  $flag_disable_left = true;
if ($this_is_home_page) {
  $flag_disable_right = true;
  $flag_disable_left = false;

If you want right side boxes on the page as well, then make the necessary change - but nobody clutters up sites with left AND right columns these days.

8 Jan 2017, 11:39 PM
#1417
littleangell52 avatar

littleangell52

Zen Follower

Join Date:
Jan 2016
Location:
Merstham Surrey United Kingdom
Posts:
102
Plugin Contributions:
0

Re: Westminster New

schoolboy:

When a new template is installed you must RESET the layout boxes. They will not appear as you had them so you need to reconfigure their location and sort orders.

Additionally, this template blocks side boxes on the home page - irrespective of the setting you make under the configuration >>> layout settings options.

You need to edit out the blocker in the templates tpl_main_page.php file,

if ($this_is_home_page) {
$flag_disable_right = true;
$flag_disable_left = true;

> 
> 
> ```php
if ($this_is_home_page) {
  $flag_disable_right = true;
  $flag_disable_left = false;

If you want right side boxes on the page as well, then make the necessary change - but nobody clutters up sites with left AND right columns these days.
I did reset the boxes but how do I find tpl_main_page.php file I have looked in my templates folder and can't find it so in would be nice to have all the folders names and not just the file name

9 Jan 2017, 12:24 AM
#1418
littleangell52 avatar

littleangell52

Zen Follower

Join Date:
Jan 2016
Location:
Merstham Surrey United Kingdom
Posts:
102
Plugin Contributions:
0

Re: Westminster New

Thank you so much I found the file in the end and edited like you said and now I can see all my sideboxes.

10 Jan 2017, 8:21 AM
#1419
hornstar avatar

hornstar

New Zenner

Join Date:
Oct 2011
Posts:
6
Plugin Contributions:
0

Re: Westminster New

Hi, I am getting an error.

I have just upgraded to 1.5.5d from 1.5.1 on my test site. Installed this template, and when I click on tools -> Layout Boxes Controller, I get this error: WARNING: An Error occurred, please refresh the page and try again in my admin control panel, and I can't access anything in the admin panel except seeing that error. (refreshing does not help) the error message won't go away and I can't access the admin control panel any more.

In my log folder, this is the latest debug file:

  
[10-Jan-2017 00:05:30 America/Los_Angeles] Request URI: /testnew/admin/, IP address: xxxx
#1  trigger_error() called at [/home/xxxx/xxxx.com.au/testnew/includes/classes/db/mysql/query_factory.php:167]
#2  queryFactory->show_error() called at [/home/xxxx/xxxx.com.au/testnew/includes/classes/db/mysql/query_factory.php:139]
#3  queryFactory->set_error() called at [/home/xxxx/xxxx.com.au/testnew/includes/classes/db/mysql/query_factory.php:266]
#4  queryFactory->Execute() called at [/home/xxxx/xxxx.com.au/testnew/admin/includes/installers/westminster_new/1_3.php:239]
#5  include_once(/home/xxxx/xxxx.com.au/testnew/admin/includes/installers/westminster_new/1_3.php) called at [/home/xxxx/xxxx.com.au/testnew/admin/includes/init_includes/init_westminster_new.php:21]
#6  require(/home/xxxx/xxxx.com.au/testnew/admin/includes/init_includes/init_westminster_new.php) called at [/home/xxxx/xxxx.com.au/testnew/includes/autoload_func.php:48]
#7  require(/home/xxxx/xxxx.com.au/testnew/includes/autoload_func.php) called at [/home/xxxx/xxxx.com.au/testnew/admin/includes/application_top.php:171]
#8  require(/home/xxxx/xxxx.com.au/testnew/admin/includes/application_top.php) called at [/home/xxxx/xxxx.com.au/testnew/admin/index.php:10]


[10-Jan-2017 00:05:30 America/Los_Angeles] PHP Fatal error:  1062:Duplicate entry 'configZenLightbox' for key 'page_key' :: INSERT INTO admin_pages (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order)VALUES 
 ('configZenLightbox', 'BOX_CONFIGURATION_ZEN_LIGHTBOX', 'FILENAME_CONFIGURATION', CONCAT('gID=',@cgi), 'configuration', 'Y', @cgi); ==> (as called by) /home/xxxx/xxxx.com.au/testnew/admin/includes/installers/westminster_new/1_3.php on line 239 <== in /home/xxxx/xxxx.com.au/testnew/includes/classes/db/mysql/query_factory.php on line 167

How do I fix this?
Thanks

10 Jan 2017, 3:14 PM
#1420
mario75 avatar

mario75

New Zenner

Join Date:
May 2012
Posts:
22
Plugin Contributions:
0

Re: Westminster New

mario75:

Hi,
Great template! Thank you for sharing this great work with us!
Few questions though I have searched this thread but didn't find my answers. Maybe I missed it. I'm sorry if that was already discussed.

  1. How do I make images to open larger than the size they open now. They are uploaded at a resolution of 1200 x 800 px but when I click on a product image it opens at a smaller size (around half of that). I didn't find this setting in zen lightbox menu, or forum support thread. How do I make them open at full resolution, or at full percent of the screen or window height, for example? I thought this could be done through Image Handler 4, so I have installed it but that didn't give me the options I needed. Although it gave me some other good stuff.
    ...

My site, still in progress: http:// mainilemamei.ro /shop/

Best regards, Marius

Hi!
Still haven't found the answer at this one:
When I click on an image it opens up with a width of 624 px, despite the fact that the image is 1200 px width.
How can I Modify the size of the displayed image in lightbox?

Attachment 16876

The only place i have found "lbImage" defined is in stylesheet_zen_lightbox.css but there isn't anything about 624px width.
Where do I control this size?
Thank you!