-
Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Making them work with v1.5.5
This is for those upgrading their picaflor-azul or DIY Responsive templates.
A few major changes to the responsive components.
1 - /includes/classes/Mobile_Detect.php
This was updated to the latest version.
2 - /includes/functions/extra_functions/zca_responsive_functions.php
This was added in v1.5.5
3 - /includes/auto_loaders/config.display_mode.php
This file was removed in v1.5.5 and replaced with config.zca_layout.php
4 - /includes/init_includes/init.display_mode.php
This file was removed in v1.5.5 and replaced with init.zca_layout.php
5 - /includes/templates/responsive_classic/common/html_header.php
The call to include the Mobile_Detect class has changed from:
PHP Code:
if (!class_exists('Mobile_Detect')) {
include_once(DIR_WS_CLASSES . 'Mobile_Detect.php');
$detect = new Mobile_Detect;
}
to:
PHP Code:
if (!class_exists('Mobile_Detect')) {
include_once(DIR_WS_CLASSES . 'Mobile_Detect.php');
}
$detect = new Mobile_Detect;
$isMobile = $detect->isMobile();
$isTablet = $detect->isTablet();
if (!isset($layoutType)) $layoutType = ($isMobile ? ($isTablet ? 'tablet' : 'mobile') : 'default');
the device specific if statements have changed from:
PHP Code:
if ($detect->isMobile() && !$detect->isTablet() or $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile') {
echo $responsive_mobile;
} else if ($detect->isTablet() or $detect->isMobile() && $_SESSION['display_mode']=='isTablet' or $detect->isTablet() && $_SESSION['display_mode']=='isTablet' or $_SESSION['display_mode']=='isTablet'){
echo $responsive_tablet;
} else if ($detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $_SESSION['display_mode']=='isNonResponsive'){
echo '';
} else {
echo $responsive_default;
}
to:
PHP Code:
if ( $detect->isMobile() && !$detect->isTablet() || $_SESSION['layoutType'] == 'mobile' ) {
echo $responsive_mobile;
} else if ( $detect->isTablet() || $_SESSION['layoutType'] == 'tablet' ){
echo $responsive_tablet;
} else if ( $_SESSION['layoutType'] == 'full' ) {
echo '';
} else {
echo $responsive_default;
}
6 - the DIY changes for /admin/layout_controller.php were never ported to v1.5.5
You can download the v1.5.5 layout_controller.php from the GIT link in my signature.
Cheers!
-
Re: Making v154 Picaflor-Azul templates work with v1.5.5
And to work in v155 if your template has an /includes/templates/YOUR_TEMPLATE/jscript/jscript_framework.php file , it needs to be replaced by copying the one from /includes/template_default/jscript/jscript_framework.php in v155
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
rbarbour
Making them work with v1.5.5
5 - /includes/templates/responsive_classic/common/html_header.php
The call to include the Mobile_Detect class has changed from:
PHP Code:
if (!class_exists('Mobile_Detect')) {
include_once(DIR_WS_CLASSES . 'Mobile_Detect.php');
$detect = new Mobile_Detect;
}
to:
PHP Code:
if (!class_exists('Mobile_Detect')) {
include_once(DIR_WS_CLASSES . 'Mobile_Detect.php');
}
$detect = new Mobile_Detect;
$isMobile = $detect->isMobile();
$isTablet = $detect->isTablet();
if (!isset($layoutType)) $layoutType = ($isMobile ? ($isTablet ? 'tablet' : 'mobile') : 'default');
the device specific if statements have changed from:
PHP Code:
if ($detect->isMobile() && !$detect->isTablet() or $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile') {
echo $responsive_mobile;
} else if ($detect->isTablet() or $detect->isMobile() && $_SESSION['display_mode']=='isTablet' or $detect->isTablet() && $_SESSION['display_mode']=='isTablet' or $_SESSION['display_mode']=='isTablet'){
echo $responsive_tablet;
} else if ($detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $_SESSION['display_mode']=='isNonResponsive'){
echo '';
} else {
echo $responsive_default;
}
to:
PHP Code:
if ( $detect->isMobile() && !$detect->isTablet() || $_SESSION['layoutType'] == 'mobile' ) {
echo $responsive_mobile;
} else if ( $detect->isTablet() || $_SESSION['layoutType'] == 'tablet' ){
echo $responsive_tablet;
} else if ( $_SESSION['layoutType'] == 'full' ) {
echo '';
} else {
echo $responsive_default;
}
This file as in Responsive Sheffield Blue has other differences besides the two above. Should I merge in those two changes only, or substitute the entire file, or?
Thanks for these tips.
zc 1.5.5 clean install test site with Responsive Sheffiled Blue, imported database from livesite zc 1.5.4 with Responsive Westminster Black.
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Merge all the differences but when merging these 2, they have changed in v1.5.5 to what I have posted.
Quote:
Originally Posted by
soxophoneplayer
This file as in Responsive Sheffield Blue has other differences besides the two above. Should I merge in those two changes only, or substitute the entire file, or?
Thanks for these tips.
zc 1.5.5 clean install test site with Responsive Sheffiled Blue, imported database from livesite zc 1.5.4 with Responsive Westminster Black.
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
rbarbour
...
6 - the DIY changes for /admin/layout_controller.php were never ported to v1.5.5
You can download the v1.5.5 layout_controller.php from the GIT link in my signature...
I had success with all these edits for using Sheffield Blue Responsive template on zc 1.5.5.
But I ran into trouble when I tried to add WP4Zen mod on top of that. (posted on that forum). Trying to access the layout controller in the admin panel led to white blank page/error message.
In the end I tried taking two zero's out of the layoutcontroller.php around line #66 so it now looks like this:
PHP Code:
// (BOF - EDIT) ZCA Responsive Components for 1.5.5
$db->Execute("insert into " . TABLE_LAYOUT_BOXES . "
(layout_template, layout_box_name, layout_box_status, layout_box_location, layout_box_sort_order, layout_box_sort_order_single, layout_box_status_single, show_box_min_width)
values ('" . zen_db_input($template_dir) . "', '" . zen_db_input($file) . "', 0, 0, 0, 0, 0, 0)");
// (EOF - EDIT) ZCA Responsive Components for 1.5.5
I'm just fumbling in the dark but that change seems to work - I can access/use the tools/layout controller. I hope I didn't cause other problems that I've yet to see.
Does anything jump out?
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
soxophoneplayer
I had success with all these edits for using Sheffield Blue Responsive template on zc 1.5.5.
But I ran into trouble when I tried to add WP4Zen mod on top of that. (posted on that forum). Trying to access the layout controller in the admin panel led to white blank page/error message.
In the end I tried taking two zero's out of the layoutcontroller.php around line #66 so it now looks like this:
PHP Code:
// (BOF - EDIT) ZCA Responsive Components for 1.5.5
$db->Execute("insert into " . TABLE_LAYOUT_BOXES . "
(layout_template, layout_box_name, layout_box_status, layout_box_location, layout_box_sort_order, layout_box_sort_order_single, layout_box_status_single, show_box_min_width)
values ('" . zen_db_input($template_dir) . "', '" . zen_db_input($file) . "', 0, 0, 0, 0, 0, 0)");
// (EOF - EDIT) ZCA Responsive Components for 1.5.5
I'm just fumbling in the dark but that change seems to work - I can access/use the tools/layout controller. I hope I didn't cause other problems that I've yet to see.
Does anything jump out?
Wanted to jump in and add this..
The last two values you removed don't appear to have a corresponding column for those values in this SQL statement. (hence why you got the column count errors when activating the WP4Zen sideboxes) Without your edit the SQL statement has only 8 table columns named, but TEN values to insert. (So this SQL statement is either missing two table columns, or has too many values to insert)
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
@DivaVocals
Great explanation! :bigups:
I would assume the errors were there even before the WP4Zen side-boxes were installed.
@soxophoneplayer
As Crystal (@DivaVocals) pointed out, the query tried to insert 10 values into 8 columns.
Removing , 0, 0 was the right option. I must have made one of my most common mistakes (copy and paste), the 10 values are actually used for my commercial templates which allows one to control the display on (Desktop, Tablet and Mobile) devices from the ADMIN Layout Boxes Controller.
I will update the GIT files to reflect.
Quote:
Originally Posted by
soxophoneplayer
I had success with all these edits for using Sheffield Blue Responsive template on zc 1.5.5.
But I ran into trouble when I tried to add WP4Zen mod on top of that. (posted on that forum). Trying to access the layout controller in the admin panel led to white blank page/error message.
In the end I tried taking two zero's out of the layoutcontroller.php around line #66 so it now looks like this:
PHP Code:
// (BOF - EDIT) ZCA Responsive Components for 1.5.5
$db->Execute("insert into " . TABLE_LAYOUT_BOXES . "
(layout_template, layout_box_name, layout_box_status, layout_box_location, layout_box_sort_order, layout_box_sort_order_single, layout_box_status_single, show_box_min_width)
values ('" . zen_db_input($template_dir) . "', '" . zen_db_input($file) . "', 0, 0, 0, 0, 0, 0)");
// (EOF - EDIT) ZCA Responsive Components for 1.5.5
I'm just fumbling in the dark but that change seems to work - I can access/use the tools/layout controller. I hope I didn't cause other problems that I've yet to see.
Does anything jump out?
Quote:
Originally Posted by
DivaVocals
Wanted to jump in and add this..
The last two values you removed don't appear to have a corresponding column for those values in this SQL statement. (hence why you got the column count errors when activating the WP4Zen sideboxes) Without your edit the SQL statement has only 8 table columns named, but TEN values to insert. (So this SQL statement is either missing two table columns, or has too many values to insert)
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
OK, so I guess I didn't thoroughly explain.
1 - /includes/classes/Mobile_Detect.php
This was updated to the latest version and IS NOW INCLUDED in v1.5.5, so DO NOT UPLOAD the version included in your template package.
2 - /includes/functions/extra_functions/zca_responsive_functions.php
This was added in v1.5.5, I'm listing this because it's a NEW file that will cause CONFLICT to your template's device specific (mobileDetect) layout.
3 - /includes/auto_loaders/config.display_mode.php
This file was removed in v1.5.5 and replaced with config.zca_layout.php, so DO NOT UPLOAD the version included in your template package.
4 - /includes/init_includes/init.display_mode.php
This file was removed in v1.5.5 and replaced with init.zca_layout.php, so DO NOT UPLOAD the version included in your template package.
5 - /includes/templates/YOUR_TEMPLATE/common/html_header.php
This file needs to be replaced with the v1.5.5 equivalent and the (mobileDetect, javascript) additions from your templates html_header.php should be merged into the v1.5.5 file.
I cannot list all of the templates additions but the following REQUIRED changes need to be made to your existing templates html_header.php code before merging to correctly work in v1.5.5.
find:
PHP Code:
// (BOF - 2.1) Responsive DIY Template Default for 1.5.x (65)
if (!class_exists('Mobile_Detect')) {
include_once(DIR_WS_CLASSES . 'Mobile_Detect.php');
$detect = new Mobile_Detect;
}
// (EOF - 2.1) Responsive DIY Template Default for 1.5.x (65)
change to:
PHP Code:
if (!class_exists('Mobile_Detect')) {
include_once(DIR_WS_CLASSES . 'Mobile_Detect.php');
}
$detect = new Mobile_Detect;
$isMobile = $detect->isMobile();
$isTablet = $detect->isTablet();
if (!isset($layoutType)) $layoutType = ($isMobile ? ($isTablet ? 'tablet' : 'mobile') : 'default');
the device specific if statements have changed from:
PHP Code:
if ($detect->isMobile() && !$detect->isTablet() or $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile') {
echo $responsive_mobile;
} else if ($detect->isTablet() or $detect->isMobile() && $_SESSION['display_mode']=='isTablet' or $detect->isTablet() && $_SESSION['display_mode']=='isTablet' or $_SESSION['display_mode']=='isTablet'){
echo $responsive_tablet;
} else if ($detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $_SESSION['display_mode']=='isNonResponsive'){
echo '';
} else {
echo $responsive_default;
}
to:
PHP Code:
if ( $detect->isMobile() && !$detect->isTablet() || $_SESSION['layoutType'] == 'mobile' ) {
echo $responsive_mobile;
} else if ( $detect->isTablet() || $_SESSION['layoutType'] == 'tablet' ){
echo $responsive_tablet;
} else if ( $_SESSION['layoutType'] == 'full' ) {
echo '';
} else {
echo $responsive_default;
}
6 - the DIY changes for /admin/layout_controller.php were never ported to v1.5.5 but this file was changed in v1.5.5, so DO NOT UPLOAD the version included in your template package. I provide a download for v1.5.5 via the GIT link in my signature.
7 - As DrByte pointed out
And to work in v155 if your template has an /includes/templates/YOUR_TEMPLATE/jscript/jscript_framework.php file , it needs to be replaced by copying the one from /includes/template_default/jscript/jscript_framework.php in v155
Cheers!
As stated elsewhere, all these templates are getting upgraded, if your still not sure or don't understand. Ask through the respective templates support thread. Someone will help you.
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Hey guys,
Hopefully one of you can help me. I'm currently using the newest Responsive Sheffield Blue template with the newest version of Zen Cart. Everything was working perfectly until I tried to create a new column/field for user registration. As soon as I did that I couldn't login, create new users or anything and the error code "An unknown response null: :text/html; charset=utf-8: :SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data was received while processing an ajax call. The action you requested could not be completed." popped up.
I removed the two random rows I inserted by accident when trying to create a column in the "zen_customers" part of my database. After I did that I could then login again and create new users but that same error message still pops up which is weird.
I click login, error message pops up, click okay, proceeds to login page and I can login as normal. Help please.
I'd link you to my site but it's all local as I'm learning Zen Cart and I haven't really coded anything for about 6 years.
Gif of what's happening - https://gyazo.com/15b3a8802a00353ca009a1b291bbf78c
Thanks in advance.
Ash.
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
CSGODeimos
Hey guys,
Hopefully one of you can help me. I'm currently using the newest Responsive Sheffield Blue template with the newest version of Zen Cart. Everything was working perfectly until I tried to create a new column/field for user registration. As soon as I did that I couldn't login, create new users or anything and the error code "An unknown response null: :text/html; charset=utf-8: :SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data was received while processing an ajax call. The action you requested could not be completed." popped up.
I removed the two random rows I inserted by accident when trying to create a column in the "zen_customers" part of my database. After I did that I could then login again and create new users but that same error message still pops up which is weird.
I click login, error message pops up, click okay, proceeds to login page and I can login as normal. Help please.
I'd link you to my site but it's all local as I'm learning Zen Cart and I haven't really coded anything for about 6 years.
Gif of what's happening -
https://gyazo.com/15b3a8802a00353ca009a1b291bbf78c
Thanks in advance.
Ash.
See the second post of this thread for the answer.
Thanks,
Anne
-
Re: Making v154 Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
DrByte
And to work in v155 if your template has an /includes/templates/YOUR_TEMPLATE/jscript/jscript_framework.php file , it needs to be replaced by copying the one from /includes/template_default/jscript/jscript_framework.php in v155
OK thanks for the heads of where to look for the problem, in fact all I did was changed the above file as per DrBytes instructions and the JSON problem is no more, yay!
Now I get one final error at checkout page which is very cryptic but has nothing to do with JSON ... i think not anyhow here it is 'WARNING: An Error occurred, please refresh the page and try again.. that is at step 3 before being sent to the bank ... do you think it's related ?
-
Re: Making v154 Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
Pauls
OK thanks for the heads of where to look for the problem, in fact all I did was changed the above file as per DrBytes instructions and the JSON problem is no more, yay!
Now I get one final error at checkout page which is very cryptic but has nothing to do with JSON ... i think not anyhow here it is 'WARNING: An Error occurred, please refresh the page and try again.. that is at step 3 before being sent to the bank ... do you think it's related ?
Well, I tried it with Paypal and no problem, so must be an issue with NoChex
-
Re: Making v154 Picaflor-Azul templates work with v1.5.5
The "WARNING: An error occurred ..." message is Zen Cart's way of letting you know that there's a myDEBUG*.log file present in your /logs folder that identifies the source of the error.
-
Re: Making v154 Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
lat9
The "WARNING: An error occurred ..." message is Zen Cart's way of letting you know that there's a myDEBUG*.log file present in your /logs folder that identifies the source of the error.
Thank I didn't know that, that is helpful and wow there are a lot of errors,
undefined index in flexible_footer_menu.php (several of those)
Use of undefined constant CSS_BUTTON_POPUPS_IS_ARRAY - assumed 'CSS_BUTTON_POPUPS_IS_ARRAY'
undefined index: displaymode responsive_sheffield_blue/templates/tpl_modules_mobile_categories_tabs.php on line 247 and line 233 and 219 and 190
then there are LOTS of these
undefined offset /includes/classes/categories_ul_generator.php on line 63
tpl_main_page errors a plenty
Lots of debugging to do!
-
Re: Making v154 Picaflor-Azul templates work with v1.5.5
for those of us that are not good with code and file merging does anyone have the successfully modified files available that can be posted so that the likes of me can simply copy and paste these files into a virgin v1.5.5a and virgin Sheffield Blue Responsive v2 and make the template work properly?
cheers,
Mike
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
rbarbour
6 - the DIY changes for /admin/layout_controller.php were never ported to v1.5.5 but this file was changed in v1.5.5, so DO NOT UPLOAD the version included in your template package. I provide a download for v1.5.5 via the GIT link in my signature.
Where would I find this download? I haven't been able to find a copy of your signature. I have no clue where to look for this file.
Thanks
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
SheilaDee
Where would I find this download? I haven't been able to find a copy of your signature. I have no clue where to look for this file.
Thanks
you may need to send rbarbour a PM in case he does not read this thread :)
cheers, Mike
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
SheilaDee
Where would I find this download? I haven't been able to find a copy of your signature. I have no clue where to look for this file.
Thanks
That GitHub repository: https://github.com/zcadditions?tab=repositories
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Thank you both for your replies. This morning I realized I wasn't reading point 6 as closely as I should have. The second sentence is providing a location for a download for v1.5.5 which I've already installed. The entire reason I'm using these directions is to make the v1.5.4 template work with the v1.5.5 I've installed. I first thought I needed to replace the file in v1.5.5 with a different file. All is well and I won't upload the file when I install the v1.5.4 template. I'm sorry for not reading closely and taking your time, but I do appreciate your replies.
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Have loaded modified Responsive Sheffield Blue (working 1.5.5 copy from another Zenner) in a new 1.5.5a upgrade test folder (http://treeoflife.net.au/store155a/) and get this error;
[05-Oct-2016 11:00:30 Australia/Melbourne] Request URI: /store155a/index.php?main_page=index, IP address: 124.169.170.69
#1 trigger_error() called at [/home/treeof/public_html/store155a/includes/classes/db/mysql/query_factory.php:167]
#2 queryFactory->show_error() called at [/home/treeof/public_html/store155a/includes/classes/db/mysql/query_factory.php:139]
#3 queryFactory->set_error() called at [/home/treeof/public_html/store155a/includes/classes/db/mysql/query_factory.php:266]
#4 queryFactory->Execute() called at [/home/treeof/public_html/store155a/includes/modules/responsive_sheffield_blue/column_left.php:17]
#5 require(/home/treeof/public_html/store155a/includes/modules/responsive_sheffield_blue/column_left.php) called at [/home/treeof/public_html/store155a/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php:150]
#6 require(/home/treeof/public_html/store155a/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php) called at [/home/treeof/public_html/store155a/index.php:97]
[05-Oct-2016 11:00:30 Australia/Melbourne] PHP Fatal error: 1054:Unknown column 'layout_box_status_desktop' in 'field list' :: select layout_box_name, layout_box_status_desktop, layout_box_status_tablet, show_box_min_width from layout_boxes where layout_box_location = 0 and layout_box_status= '1' and layout_template ='responsive_sheffield_blue' order by layout_box_sort_order ==> (as called by) /home/treeof/public_html/store155a/includes/modules/responsive_sheffield_blue/column_left.php on line 17 <== in /home/treeof/public_html/store155a/includes/classes/db/mysql/query_factory.php on line 167
cheers,
Mike
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
shags38
Have loaded modified Responsive Sheffield Blue (working 1.5.5 copy from another Zenner) in a new 1.5.5a upgrade test folder (
http://treeoflife.net.au/store155a/) and get this error;
[05-Oct-2016 11:00:30 Australia/Melbourne] Request URI: /store155a/index.php?main_page=index, IP address: 124.169.170.69
#1 trigger_error() called at [/home/treeof/public_html/store155a/includes/classes/db/mysql/query_factory.php:167]
#2 queryFactory->show_error() called at [/home/treeof/public_html/store155a/includes/classes/db/mysql/query_factory.php:139]
#3 queryFactory->set_error() called at [/home/treeof/public_html/store155a/includes/classes/db/mysql/query_factory.php:266]
#4 queryFactory->Execute() called at [/home/treeof/public_html/store155a/includes/modules/responsive_sheffield_blue/column_left.php:17]
#5 require(/home/treeof/public_html/store155a/includes/modules/responsive_sheffield_blue/column_left.php) called at [/home/treeof/public_html/store155a/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php:150]
#6 require(/home/treeof/public_html/store155a/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php) called at [/home/treeof/public_html/store155a/index.php:97]
[05-Oct-2016 11:00:30 Australia/Melbourne] PHP Fatal error: 1054:Unknown column 'layout_box_status_desktop' in 'field list' :: select layout_box_name, layout_box_status_desktop, layout_box_status_tablet, show_box_min_width from layout_boxes where layout_box_location = 0 and layout_box_status= '1' and layout_template ='responsive_sheffield_blue' order by layout_box_sort_order ==> (as called by) /home/treeof/public_html/store155a/includes/modules/responsive_sheffield_blue/column_left.php on line 17 <== in /home/treeof/public_html/store155a/includes/classes/db/mysql/query_factory.php on line 167
cheers,
Mike
ADDITIONALLY
when changing to responsive Classic template and selecting /admin/layout_boxes_controller/ I get this error on an otherwise blank page;
"WARNING: An Error occurred, please refresh the page and try again." url reads https://treeoflife.net.au/store155a/...controller.php
and the storefront page looks ok EXCEPT it shows only a single column in products categories (new products shows 3 columns) - this has happened in every one of 3 separate test folder attempts.
cheers,
Mike
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
shags38
ADDITIONALLY
when changing to responsive Classic template and selecting /admin/layout_boxes_controller/ I get this error on an otherwise blank page;
"WARNING: An Error occurred, please refresh the page and try again." url reads
https://treeoflife.net.au/store155a/...controller.php
and the storefront page looks ok EXCEPT it shows only a single column in products categories (new products shows 3 columns) - this has happened in every one of 3 separate test folder attempts.
cheers,
Mike
Not sure if this is what happened to me - but on the admin/layout_controller.php around line #68 there was an error in the file I downloaded for upgrading to 1.5.5a.
It should look like this:
Code:
/ (BOF - EDIT) ZCA Responsive Components for 1.5.5
$db->Execute("insert into " . TABLE_LAYOUT_BOXES . "
(layout_template, layout_box_name, layout_box_status, layout_box_location, layout_box_sort_order, layout_box_sort_order_single, layout_box_status_single, show_box_min_width)
values ('" . zen_db_input($template_dir) . "', '" . zen_db_input($file) . "', 0, 0, 0, 0, 0, 0)");
The copy I downloaded had 2 too many zeros at the end and gave me column errors. Adjustment to above fixed it for me. Hopefully this helps.
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
soxophoneplayer
Not sure if this is what happened to me - but on the admin/layout_controller.php around line #68 there was an error in the file I downloaded for upgrading to 1.5.5a.
It should look like this:
Code:
/ (BOF - EDIT) ZCA Responsive Components for 1.5.5
$db->Execute("insert into " . TABLE_LAYOUT_BOXES . "
(layout_template, layout_box_name, layout_box_status, layout_box_location, layout_box_sort_order, layout_box_sort_order_single, layout_box_status_single, show_box_min_width)
values ('" . zen_db_input($template_dir) . "', '" . zen_db_input($file) . "', 0, 0, 0, 0, 0, 0)");
The copy I downloaded had 2 too many zeros at the end and gave me column errors. Adjustment to above fixed it for me. Hopefully this helps.
Many thanks for responding Soxo - I modified the file but still showing one column? Have you got this template actually working properly in v1.5.5a ?
cheers, Mike
Attachment 16706
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
shags38
Many thanks for responding Soxo - I modified the file but still showing one column? Have you got this template actually working properly in v1.5.5a ?
cheers, Mike
Attachment 16706
The earlier posts of problems indicate that there is sql that has not been executed to add fields to the database in order to support the additional fields that are reported as missing (possibly in another file(s) not copied over) while the above image shows three columns. Is it provided to show the desired outcome or what is currently present?
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
shags38
Many thanks for responding Soxo - I modified the file but still showing one column? Have you got this template actually working properly in v1.5.5a ?
cheers, Mike
Attachment 16706
I do have Responsive Sheffield Blue working in 1.5.5a. It's the url in my signature below. I switched from Winchester Black when zc 1.5.5 came out, and then modified further when zc 1.5.5a came out. Its fully functional, though I am always tweaking to add improvements - which often get me in trouble - I've never learned to leave well enough alone ;o)
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Oh boy, this should really not be such a pita. Can we just upload the modified responsive_sheffield_blue files somewhere once all edited and working? Can't imagine everyone wants to do all that editing. Then download the faulty layout_controller.php and discover that further editing needs to be done to the , 0, 0, 0, 0, 0, 0 line mistake. The sql_patch seems to be redundant too. Cannot ADD column show_box_min_width because it already exists.
We can do better. No?
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
soxophoneplayer
It should look like this:
Code:
/ (BOF - EDIT) ZCA Responsive Components for 1.5.5
$db->Execute("insert into " . TABLE_LAYOUT_BOXES . "
(layout_template, layout_box_name, layout_box_status, layout_box_location, layout_box_sort_order, layout_box_sort_order_single, layout_box_status_single, show_box_min_width)
values ('" . zen_db_input($template_dir) . "', '" . zen_db_input($file) . "', 0, 0, 0, 0, 0, 0)");
The GITHUB repository has been updated to reflect the above changes.
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
mydanilo
Oh boy, this should really not be such a pita. Can we just upload the modified responsive_sheffield_blue files somewhere once all edited and working? Can't imagine everyone wants to do all that editing. Then download the faulty layout_controller.php and discover that further editing needs to be done to the , 0, 0, 0, 0, 0, 0 line mistake. The sql_patch seems to be redundant too. Cannot ADD column show_box_min_width because it already exists.
We can do better. No?
Yeah really. Because I just screwed the whole site up. Thank goodness it was on a test server.
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Well alright then. In my case I went back and followed post #8 carefully although I was still confused a little but where I was confused I took a guess at what he meant and was right.
I now have the Sheffield Blue template working correctly on my test server.
I have not tested any of them yet but I assume that the should fix the other Picaflor Azul templates that are doing the same thing.
Thanks everyone for this thread
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
cruzat
Well alright then. In my case I went back and followed post #8 carefully although I was still confused a little but where I was confused I took a guess at what he meant and was right.
I now have the Sheffield Blue template working correctly on my test server.
I have not tested any of them yet but I assume that the should fix the other Picaflor Azul templates that are doing the same thing.
Thanks everyone for this thread
I am using Responsive Sheffield Blue 2.0 and Zen Cart 1.5.5d. I have followed the guide in post #8, and have done it twice. Still getting the error. The only thing that is unclear is #2. Do I do anything with that file?
I got the layout_controller.php from github, although I could not find the link, but googled the file. It appeared to be the correct file based on the description.
Using WinMerge I made the appropriate changes to the DIY template comparing against the html_header.php from the 1.5.5d distribution. It was pretty straightforward. The remaining differences appear to be part of the template.
So I still get the error. Any suggestions?
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
tonyreynolds
I am using Responsive Sheffield Blue 2.0 and Zen Cart 1.5.5d. I have followed the guide in post #8, and have done it twice. Still getting the error. The only thing that is unclear is #2. Do I do anything with that file?
I got the layout_controller.php from github, although I could not find the link, but googled the file. It appeared to be the correct file based on the description.
Using WinMerge I made the appropriate changes to the DIY template comparing against the html_header.php from the 1.5.5d distribution. It was pretty straightforward. The remaining differences appear to be part of the template.
So I still get the error. Any suggestions?
What exactly is the error that YOU are getting?
And your URL where we can test it?
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
tonyreynolds
I am using Responsive Sheffield Blue 2.0 and Zen Cart 1.5.5d. I have followed the guide in post #8, and have done it twice. Still getting the error. The only thing that is unclear is #2. Do I do anything with that file?
I got the layout_controller.php from github, although I could not find the link, but googled the file. It appeared to be the correct file based on the description.
Using WinMerge I made the appropriate changes to the DIY template comparing against the html_header.php from the 1.5.5d distribution. It was pretty straightforward. The remaining differences appear to be part of the template.
So I still get the error. Any suggestions?
I'm running Responsive Sheffield Blue 2.0 on zc 1.5.5d
The file includes/functions/extra_functions/zca_responsive_functions mentioned in item 2 of the list on post #8 - I'm using the file from the zc 1.5.5d fileset.
There was a problem with too many zero's in the github version of the layout_controller and I don't know if its been fixed - but check post #5 in this thread if you think this might be an issue for you too.
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
DrByte
What exactly is the error that YOU are getting?
And your URL where we can test it?
The site is at http://bms.night.net from the "Shop" drop down menu select "Clone Kits", add the item to the cart and proceed through checkout the error popup message occurs when you select add to cart and all subsequent pages through checkout.
Tony
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
The exact error I am getting is:
An unknown response null: :text/html; charset:utf=8: :Bad Request was received while processing an ajax call. The action you requested could not be completed.
Tony
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
tonyreynolds
The exact error I am getting is:
An unknown response null: :text/html; charset:utf=8: :Bad Request was received while processing an ajax call. The action you requested could not be completed.
Tony
See my fix in post #2 of this thread. It's the same as point #7 in post #8.
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
DrByte
See my fix in post #2 of this thread. It's the same as point #7 in post #8.
Thanks.That worked perfectly. I missed putting the 1.5.5d distribution file into the responsive_sheffield_blue template directory. I apologize for such a simple blunder.
Thanks again.
Tony
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Sorry I hadn't been back here in a while.
Dang I just tried what DrByte said on my test server and it was easier to follow than any of the rest and worked perfect.
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Worked for me too! Thanks DrByte.
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Followed steps here and i have the search bar visible on a mobile phone, but when i click inside it the screen keyboard appears then disappears.
not sure whats going on, help please.
The site is at https://www.tlsystems.co.uk/new
cheers dave
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Hello rbarbour
I have done the steps in the tutorial to make the template work in 1.5.5, except for the last step
"6 - the DIY changes for /admin/layout_controller.php were never ported to v1.5.5
You can download the v1.5.5 layout_controller.php from the GIT link in my signature."
I don't see this download in your signature, where can i find this?
I really want this template to work on my site, but i get also the "WARNING: An Error occurred, please refresh the page and try again."
When clicking the all product, newest, Featured,....
Please help
my log
[08-Nov-2018 16:17:37 Europe/Amsterdam] Request URI: /***********/index.php?main_page=products_new, IP address: ***********
#1 trigger_error() called at [/home/***********/domains/***********/public_html/shop2019b/includes/classes/db/mysql/query_factory.php:171]
#2 queryFactory->show_error() called at [/home/***********/domains/***********/public_html/shop2019b/includes/classes/db/mysql/query_factory.php:143]
#3 queryFactory->set_error() called at [/home/***********/domains/***********/public_html/shop2019b/includes/classes/db/mysql/query_factory.php:270]
#4 queryFactory->Execute() called at [/home/***********/domains/***********/public_html/shop2019b/includes/classes/split_page_results.php:78]
#5 splitPageResults->__construct() called at [/home/***********/domains/***********/public_html/shop2019b/includes/modules/responsive_sheffield_blue/product_listing.php:35]
#6 include(/home/***********/domains/***********/public_html/shop2019b/includes/modules/responsive_sheffield_blue/product_listing.php) called at [/home/***********/domains/***********/public_html/shop2019b/includes/templates/responsive_sheffield_blue/templates/tpl_modules_product_listing.php:14]
#7 require(/home/***********/domains/***********/public_html/shop2019b/includes/templates/responsive_sheffield_blue/templates/tpl_modules_product_listing.php) called at [/home/***********/domains/***********/public_html/shop2019b/includes/templates/responsive_sheffield_blue/templates/tpl_products_new_default.php:19]
#8 require(/home/***********/domains/***********/public_html/shop2019b/includes/templates/responsive_sheffield_blue/templates/tpl_products_new_default.php) called at [/home/***********/domains/***********/public_html/shop2019b/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php:251]
#9 require(/home/***********/domains/***********/public_html/shop2019b/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php) called at [/home/***********/domains/***********/public_html/shop2019b/index.php:97]
[08-Nov-2018 16:17:37 Europe/Amsterdam] PHP Fatal error: 1109:Unknown table 'p' in field list :: select count(p.products_id) as total ==> (as called by) /home/***********/domains/***********/public_html/shop2019b/includes/classes/split_page_results.php on line 78 <== in /home/***********/domains/***********/public_html/shop2019b/includes/classes/db/mysql/query_factory.php on line 171
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Quote:
Originally Posted by
rbarbour
Making them work with v1.5.5
This is for those upgrading their picaflor-azul or DIY Responsive templates.
A few major changes to the responsive components.
1 - /includes/classes/Mobile_Detect.php
This was updated to the latest version.
2 - /includes/functions/extra_functions/zca_responsive_functions.php
This was added in v1.5.5
3 - /includes/auto_loaders/config.display_mode.php
This file was removed in v1.5.5 and replaced with config.zca_layout.php
4 - /includes/init_includes/init.display_mode.php
This file was removed in v1.5.5 and replaced with init.zca_layout.php
5 - /includes/templates/responsive_classic/common/html_header.php
The call to include the Mobile_Detect class has changed from:
PHP Code:
if (!class_exists('Mobile_Detect')) {
include_once(DIR_WS_CLASSES . 'Mobile_Detect.php');
$detect = new Mobile_Detect;
}
to:
PHP Code:
if (!class_exists('Mobile_Detect')) {
include_once(DIR_WS_CLASSES . 'Mobile_Detect.php');
}
$detect = new Mobile_Detect;
$isMobile = $detect->isMobile();
$isTablet = $detect->isTablet();
if (!isset($layoutType)) $layoutType = ($isMobile ? ($isTablet ? 'tablet' : 'mobile') : 'default');
the device specific if statements have changed from:
PHP Code:
if ($detect->isMobile() && !$detect->isTablet() or $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile') {
echo $responsive_mobile;
} else if ($detect->isTablet() or $detect->isMobile() && $_SESSION['display_mode']=='isTablet' or $detect->isTablet() && $_SESSION['display_mode']=='isTablet' or $_SESSION['display_mode']=='isTablet'){
echo $responsive_tablet;
} else if ($detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $_SESSION['display_mode']=='isNonResponsive'){
echo '';
} else {
echo $responsive_default;
}
to:
PHP Code:
if ( $detect->isMobile() && !$detect->isTablet() || $_SESSION['layoutType'] == 'mobile' ) {
echo $responsive_mobile;
} else if ( $detect->isTablet() || $_SESSION['layoutType'] == 'tablet' ){
echo $responsive_tablet;
} else if ( $_SESSION['layoutType'] == 'full' ) {
echo '';
} else {
echo $responsive_default;
}
6 - the DIY changes for /admin/layout_controller.php were never ported to v1.5.5
You can download the v1.5.5 layout_controller.php from the GIT link in my signature.
Cheers!
Hello rbarbour
I have done the steps in the tutorial to make the template work in 1.5.5, except for the last step
"6 - the DIY changes for /admin/layout_controller.php were never ported to v1.5.5
You can download the v1.5.5 layout_controller.php from the GIT link in my signature."
I don't see this download in your signature, where can i find this?
I really want this template to work on my site, but i get also the "WARNING: An Error occurred, please refresh the page and try again."
When clicking the all product, newest, Featured,....
Please help
my log
[08-Nov-2018 16:17:37 Europe/Amsterdam] Request URI: /***********/index.php?main_page=products_new, IP address: ***********
#1 trigger_error() called at [/home/***********/domains/***********/public_html/shop2019b/includes/classes/db/mysql/query_factory.php:171]
#2 queryFactory->show_error() called at [/home/***********/domains/***********/public_html/shop2019b/includes/classes/db/mysql/query_factory.php:143]
#3 queryFactory->set_error() called at [/home/***********/domains/***********/public_html/shop2019b/includes/classes/db/mysql/query_factory.php:270]
#4 queryFactory->Execute() called at [/home/***********/domains/***********/public_html/shop2019b/includes/classes/split_page_results.php:78]
#5 splitPageResults->__construct() called at [/home/***********/domains/***********/public_html/shop2019b/includes/modules/responsive_sheffield_blue/product_listing.php:35]
#6 include(/home/***********/domains/***********/public_html/shop2019b/includes/modules/responsive_sheffield_blue/product_listing.php) called at [/home/***********/domains/***********/public_html/shop2019b/includes/templates/responsive_sheffield_blue/templates/tpl_modules_product_listing.php:14]
#7 require(/home/***********/domains/***********/public_html/shop2019b/includes/templates/responsive_sheffield_blue/templates/tpl_modules_product_listing.php) called at [/home/***********/domains/***********/public_html/shop2019b/includes/templates/responsive_sheffield_blue/templates/tpl_products_new_default.php:19]
#8 require(/home/***********/domains/***********/public_html/shop2019b/includes/templates/responsive_sheffield_blue/templates/tpl_products_new_default.php) called at [/home/***********/domains/***********/public_html/shop2019b/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php:251]
#9 require(/home/***********/domains/***********/public_html/shop2019b/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php) called at [/home/***********/domains/***********/public_html/shop2019b/index.php:97]
[08-Nov-2018 16:17:37 Europe/Amsterdam] PHP Fatal error: 1109:Unknown table 'p' in field list :: select count(p.products_id) as total ==> (as called by) /home/***********/domains/***********/public_html/shop2019b/includes/classes/split_page_results.php on line 78 <== in /home/***********/domains/***********/public_html/shop2019b/includes/classes/db/mysql/query_factory.php on line 171
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
eek!!! and to think that Picaflor actually suggested that I SHOULD use v 1.5.5f!!!...and I got my hosting company to upgrade their install function to reflect this!!
Sounds like a heck of a lot of changes to try and get this working - not sure I want to spend my time doing this!!! Now that my hosting company has upgraded to V1.5.5f, is there any way I can install.use v1.5.1 so I can use that template as it is????
-
Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5
Hi,
I am trying to figure out what is the best course of action. I have a client that is on a very customized version of Picaflor-Azul's Stirling Grand Template. Opinions wanted :)
Would be it easier to update to work with 1.5.6 or should I just customize the Responsive Classic in stock Zen Cart?
Thanks
Colleen