If this is your first visit, check our documentation. To post, register or login.

Define pages

Started by angiex1 on 6 Jul 2022, 10:48 AM · Views: 3,875

Results 1 to 12 of 12
6 Jul 2022, 10:48 AM
#1
angiex1 avatar

angiex1

New Zenner

Join Date:
Apr 2022
Location:
United Kingdon
Posts:
94
Plugin Contributions:
0

Define pages

Info in my signature is up to date.

I am trying to edit my define pages and for some reason the info I have put there is not showing upto me on my website, or to others who have checked via their devices ie mobile and computer, but is there in the define pages editor and via the define pages in cpanel.

I have tried adding the info via the ck editor and the plain text editor to no avail.
I am not sure what is going on, have cleared cookies and cache etc.

here is a link to the page

https://angiesartspace.co.uk/index.php?main_page=page_2

https://www.angiesartspace.co.uk/ Zen cart version v1.5.8, MySQL Database version10.3.35-MariaDB-cll-lve, PHP Version 7.4.30, Template Bootstrap 4.

6 Jul 2022, 11:30 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Define pages

You're getting a partial blank page. Check your /logs folder to see what the root cause of this is. Once you fix this, your define page content will show.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

6 Jul 2022, 11:36 AM
#3
angiex1 avatar

angiex1

New Zenner

Join Date:
Apr 2022
Location:
United Kingdon
Posts:
94
Plugin Contributions:
0

Re: Define pages

There is nothing showing in the logs if I am looking in the right place that is?

Edit to add there is in the cpanel but that could be because I also tried to do the define page via the cpanel aswell.

Am not sure how to fix that log

https://www.angiesartspace.co.uk/ Zen cart version v1.5.8, MySQL Database version10.3.35-MariaDB-cll-lve, PHP Version 7.4.30, Template Bootstrap 4.

6 Jul 2022, 3:45 PM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Define pages

Post the log you are getting.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

6 Jul 2022, 5:10 PM
#5
angiex1 avatar

angiex1

New Zenner

Join Date:
Apr 2022
Location:
United Kingdon
Posts:
94
Plugin Contributions:
0

Re: Define pages

This is the latest log I can find, it wont let me upload the file as showing as invalid so have copied it

[06-Jul-2022 16:35:22 UTC] Request URI: /index.php?main_page=page_2, IP address: 64.233.172.16
#1 require() called at [/home/angiesar/public_html/includes/templates/clone/templates/tpl_page_2_default.php:24]
#2 require(/home/angiesar/public_html/includes/templates/clone/templates/tpl_page_2_default.php) called at [/home/angiesar/public_html/includes/templates/clone/common/tpl_main_page.php:202]
#3 require(/home/angiesar/public_html/includes/templates/clone/common/tpl_main_page.php) called at [/home/angiesar/public_html/index.php:94]
--> PHP Warning: require(includes/languages/english/html_includes/define_page_2.php): failed to open stream: No such file or directory in /home/angiesar/public_html/includes/templates/clone/templates/tpl_page_2_default.php on line 24.

[06-Jul-2022 16:35:22 UTC] PHP Fatal error: require(): Failed opening required 'includes/languages/english/html_includes/define_page_2.php' (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/angiesar/public_html/includes/templates/clone/templates/tpl_page_2_default.php on line 24

https://www.angiesartspace.co.uk/ Zen cart version v1.5.8, MySQL Database version10.3.35-MariaDB-cll-lve, PHP Version 7.4.30, Template Bootstrap 4.

6 Jul 2022, 7:17 PM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,906
Plugin Contributions:
23

Re: Define pages

First of all, make sure you get a file into the folder mentioned in the log.

edit: changing fix

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

6 Jul 2022, 7:37 PM
#7
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,906
Plugin Contributions:
23

Re: Define pages

Since you have probably not messed with the original file, open your cPanel and navigate to:

public_html/includes/templates/boostrap/templates/tpl_page_2_default.php

Right-click on the file and select copy.

In the Copy window, change /public_html/includes/templates/bootstrap/templates to ```
/public_html/includes/templates/clone/templates


Next, check to see that you do not still have a partial blank page.  If so, there should be another log that needs to be addressed.

If not, you should now be able to edit the file from the tools menu in your admin.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

6 Jul 2022, 8:28 PM
#8
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Define pages

Make sure you have

./includes/languages/english/html_includes/define_page_2.php

and ideally also

./includes/languages/english/html_includes/clone/define_page_2.php

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

6 Jul 2022, 9:23 PM
#9
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,906
Plugin Contributions:
23

Re: Define pages

swguy:

Make sure you have
./includes/languages/english/html_includes/define_page_2.php
and ideally also
./includes/languages/english/html_includes/clone/define_page_2.php

Good advice to be sure of their presence.

They should already be there if the OP has been able to edit them in the Define Pages Editor.

The bootstrap tpl file is the file that allows the define_page_2.php file to be "seen" in boostrap.

Hence, the log stating the tpl could not be found.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

10 Jul 2022, 1:56 PM
#10
angiex1 avatar

angiex1

New Zenner

Join Date:
Apr 2022
Location:
United Kingdon
Posts:
94
Plugin Contributions:
0

Re: Define pages

dbltoe:

Since you have probably not messed with the original file, open your cPanel and navigate to:

public_html/includes/templates/boostrap/templates/tpl_page_2_default.php

Right-click on the file and select copy.

In the Copy window, change /public_html/includes/templates/bootstrap/templates to ```
/public_html/includes/templates/clone/templates

> 
> Next, check to see that you do not still have a partial blank page.  If so, there should be another log that needs to be addressed.
> 
> If not, you should now be able to edit the file from the tools menu in your admin.



I cannot find the part to edit or am I missing it.

<?php /** * tpl_page_2_default.php * * BOOTSTRAP v1.0.BETA * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: tpl_page_2_default.php 3464 2006-04-19 00:07:26Z ajeh $ */ ?> <div id="page2Default" class="centerColumn"> <h1 id="page2Default-pageHeading" class="pageHeading"><?php echo HEADING_TITLE; ?></h1> <?php if (DEFINE_PAGE_2_STATUS >= 1 and DEFINE_PAGE_2_STATUS <= 2) { ?> <div id="page2Default-defineContent" class="defineContent"> <?php /** * load the html_define for the page_2 default */ require($define_page); ?> </div> <?php } ?> <div id="page2Default-btn-toolbar" class="btn-toolbar my-3" role="toolbar"> <?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?> </div> </div> ```

https://www.angiesartspace.co.uk/ Zen cart version v1.5.8, MySQL Database version10.3.35-MariaDB-cll-lve, PHP Version 7.4.30, Template Bootstrap 4.

10 Jul 2022, 2:48 PM
#11
angiex1 avatar

angiex1

New Zenner

Join Date:
Apr 2022
Location:
United Kingdon
Posts:
94
Plugin Contributions:
0

Re: Define pages

I have made no changes and everything in the admin panel was fine for the shopping cart then suddenly am getting this

Attachment 20047

https://www.angiesartspace.co.uk/ Zen cart version v1.5.8, MySQL Database version10.3.35-MariaDB-cll-lve, PHP Version 7.4.30, Template Bootstrap 4.

11 Jul 2022, 5:10 AM
#12
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,906
Plugin Contributions:
23

Re: Define pages

Looked like the file was old. Still states 1.0.BETA but current.

Of course, you need to get the config file back first.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com