Forums / Templates, Stylesheets, Page Layout / Missing Show All Button And Show Page View Button

Missing Show All Button And Show Page View Button

Results 1 to 11 of 11
24 Mar 2016, 04:15
#1
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Missing Show All Button And Show Page View Button

Attachment 16155Attachment 16156

Having just upgraded from 1.5.4 to 1.5.5, I'm working in the Classic Green template before I tackle the Responsive Template, and I've just noticed I seem to be missing the Show_Pageview_Button and the Show_All_Button (screen shots).

I'm guessing they must have failed in my upload, but can someone tell me where they are in the files so I can fix that?

Thank you.
24 Mar 2016, 09:05
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: Missing Show All Button And Show Page View Button

I seem to be missing the Show_Pageview_Button and the Show_All_Button

I do not believe that these are part of the standard distribution - it must be a plugin that you installed
Here is a standard install that you can look at HERE
24 Mar 2016, 12:36
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,907
Plugin Contributions:
1

Re: Missing Show All Button And Show Page View Button

What is being shown is a missing definition. Using your ZC 1.5.4 site, go into your admin->tools->developers toolkit and search for those all capitalized words individually.

Seeing as the above images are from the default template to some extent, the question is what has been modified away from or added to the vanilla install, if anything?
24 Mar 2016, 17:37
#4
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Re: Missing Show All Button And Show Page View Button

mc12345678:

What is being shown is a missing definition. Using your ZC 1.5.4 site, go into your admin->tools->developers toolkit and search for those all capitalized words individually.

Seeing as the above images are from the default template to some extent, the question is what has been modified away from or added to the vanilla install, if anything?


Hmmmm, that's interesting.............I now see it's somehow related to Winchester Responsive, and I do have the files for that template uploaded, but not presently selected as my template.

/includes/classes/split_page_results.php

Line #119 :     elseif ($this->page_all) $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters, $request_type) . '" title=" ' . SHOW_PAGEVIEW_TITLE . ' ">' . SHOW_PAGEVIEW_BUTTON . '</a>  ';

includes/languages/winchester_responsive/english.php

Line # 77 :     define('SHOW_PAGEVIEW_BUTTON', 'View Less');  
24 Mar 2016, 17:46
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: Missing Show All Button And Show Page View Button

It would be due to what is in this file as it is not overrideable

/includes/classes/split_page_results.php
24 Mar 2016, 18:11
#6
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Re: Missing Show All Button And Show Page View Button

kobra:

It would be due to what is in this file as it is not overrideable

/includes/classes/split_page_results.php


Aha! True enough. That line #119 is not present in the vanilla includes/classes/split_page_results.php file but is present in the Winchester split_page_results.php file. So I merely need to upload the standard file again (overwriting the modified Winchester version)?
24 Mar 2016, 18:14
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,907
Plugin Contributions:
1

Re: Missing Show All Button And Show Page View Button

Saintsteven:

Aha! True enough. That line #119 is not present in the vanilla includes/classes/split_page_results.php file but is present in the Winchester split_page_results.php file. So I merely need to upload the standard file again (overwriting the modified Winchester version)?

That or add the definition from the other template to an appropriate location for your current template if you like(d) what was there...
24 Mar 2016, 18:25
#8
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Re: Missing Show All Button And Show Page View Button

Well, I was pleased with Winchester Responsive, but that template is throwing an error I cannot (yet) comprehend, so I thought I'd just run in the Classic Green template until I could overcome THAT little problem, in the interest of doing a little business. Due to a variety of "real life" problems I'm having a little trouble finding a block of time to dedicate to trouble shooting.

I don't mean to cram two topics into one (guess I am though), but that error was:

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.
24 Mar 2016, 18:42
#9
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,907
Plugin Contributions:
1

Re: Missing Show All Button And Show Page View Button

Saintsteven:

Well, I was pleased with Winchester Responsive, but that template is throwing an error I cannot (yet) comprehend, so I thought I'd just run in the Classic Green template until I could overcome THAT little problem, in the interest of doing a little business. Due to a variety of "real life" problems I'm having a little trouble finding a block of time to dedicate to trouble shooting.

I don't mean to cram two topics into one (guess I am though), but that error was:

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.


Yeah, sort of a known issue if I remember the error message correctly. See: https://www.zen-cart.com/showthread.php?t=219801&goto=newpost
24 Mar 2016, 18:48
#10
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Re: Missing Show All Button And Show Page View Button

mc12345678:

Yeah, sort of a known issue if I remember the error message correctly. See: https://www.zen-cart.com/showthread.php?t=219801&goto=newpost


I missed that, thank you. I really do prefer Winchester Responsive, will tackle that little issue next.
24 Mar 2016, 18:50
#11
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Re: Missing Show All Button And Show Page View Button

My issue is resolved, thanks to all for their advice.