Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2012
    Location
    Los Angeles, CA
    Posts
    185
    Plugin Contributions
    2

    help question What to do? I do no have the file needed for this plug-in.

    I want to use the paypal marketing plug in which requires me to add a line of code to the file: includes/templates/YOUR_TEMPLATE/common/html_header.php . My problem is, my template does not have that file. The default_template has the file. What can I do?

  2. #2
    Join Date
    Jul 2012
    Posts
    16,737
    Plugin Contributions
    17

    Default Re: What to do? I do no have the file needed for this plug-in.

    Quote Originally Posted by sammirah View Post
    I want to use the paypal marketing plug in which requires me to add a line of code to the file: includes/templates/YOUR_TEMPLATE/common/html_header.php . My problem is, my template does not have that file. The default_template has the file. What can I do?
    Not sure what aspect of potential issues is the problem. Could you be a little clearer about which file is a problem or what the issue is?

    Indicate which "file" is missing/present, etc...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Apr 2012
    Location
    Los Angeles, CA
    Posts
    185
    Plugin Contributions
    2

    Default Re: What to do? I do no have the file needed for this plug-in.

    My template does not have the file html_header.php

    /includes/templates/becaberry/common/html_header.php does not exist on my server. The only place I find html_header.php is in includes/templates/template_default/common/html_header.php

  4. #4
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: What to do? I do no have the file needed for this plug-in.

    Copy the html_header.php from includes/templates/template_default/common/ into /includes/templates/becaberry/common/ and then edit to add what you need to it to override the one in the default folder
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  5. #5
    Join Date
    Apr 2012
    Location
    Los Angeles, CA
    Posts
    185
    Plugin Contributions
    2

    Default Re: What to do? I do no have the file needed for this plug-in.

    Quote Originally Posted by barco57 View Post
    Copy the html_header.php from includes/templates/template_default/common/ into /includes/templates/becaberry/common/ and then edit to add what you need to it to override the one in the default folder
    Ok, so I copied that file and took out the file which was causing the double option in Admin -> Configuration (which was not working), now the main page of the site is not working. I am thinking I did not add the line correctly in html_header.php, but not for sure. This is the error log I am getting:

    Code:
     
     myDEBUG-1546870648-414270.log ( ASCII text, with very long lines ) 
    [07-Jan-2019 09:17:29 America/Detroit] Request URI: /webstore2/index.php?main_page=index, IP address: 23.243.5.141
    #1  require() called at [/home/sammirah/public_html/webstore2/includes/templates/becaberry/common/html_header.php:170]
    #2  require(/home/sammirah/public_html/webstore2/includes/templates/becaberry/common/html_header.php) called at [/home/sammirah/public_html/webstore2/index.php:43]
    [07-Jan-2019 09:17:29 America/Detroit] PHP Warning:  require(includes/templates/becaberry/paypal_solutions/paypal_solutions): failed to open stream: No such file or directory in /home/sammirah/public_html/webstore2/includes/templates/becaberry/common/html_header.php on line 170
    
    [07-Jan-2019 09:17:29 America/Detroit] Request URI: /webstore2/index.php?main_page=index, IP address: 23.243.5.141
    #1  require() called at [/home/sammirah/public_html/webstore2/includes/templates/becaberry/common/html_header.php:170]
    #2  require(/home/sammirah/public_html/webstore2/includes/templates/becaberry/common/html_header.php) called at [/home/sammirah/public_html/webstore2/index.php:43]
    [07-Jan-2019 09:17:29 America/Detroit] PHP Warning:  require(includes/templates/becaberry/paypal_solutions/paypal_solutions): failed to open stream: No such file or directory in /home/sammirah/public_html/webstore2/includes/templates/becaberry/common/html_header.php on line 170
    [07-Jan-2019 09:17:29 America/Detroit] PHP Fatal error:  require(): Failed opening required 'includes/templates/becaberry/paypal_solutions/paypal_solutions' (include_path='.:/usr/lib/php:/usr/local/lib/php:/usr/local/php56/lib/php') in /home/sammirah/public_html/webstore2/includes/templates/becaberry/common/html_header.php on line 170
    Is this saying that I am actually missing a file or is it just something missing in the html_header.php ?

  6. #6
    Join Date
    Jul 2012
    Posts
    16,737
    Plugin Contributions
    17

    Default Re: What to do? I do no have the file needed for this plug-in.

    The message is indicating that: includes/templates/becaberry/paypal_solutions/paypal_solutions is missing. But the unusual part of that is that it isn't a file that is being accessed per se, but looks like an entire folder.

    Ie. There's no php extension, though that isn't necessarily a requirement.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Apr 2012
    Location
    Los Angeles, CA
    Posts
    185
    Plugin Contributions
    2

    Default Re: What to do? I do no have the file needed for this plug-in.

    Quote Originally Posted by mc12345678 View Post
    The message is indicating that: includes/templates/becaberry/paypal_solutions/paypal_solutions is missing. But the unusual part of that is that it isn't a file that is being accessed per se, but looks like an entire folder.

    Ie. There's no php extension, though that isn't necessarily a requirement.
    Ah ha! The file is there and there is a paypal_solutions.php within. So I changed the verbage on line 170 to state paypal_soutions.php and that seems to have worked. At least the home page is back to normal. Now to set it up and copy the changes to the live site.

 

 

Similar Threads

  1. What's the best way to have a product 1 for £1.99 or 3 for £5?
    By Natty in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 8 Apr 2010, 06:17 AM
  2. What file holds the shipping logic for Downloads
    By emaugust in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 25 May 2009, 06:26 PM
  3. What files have the IP address for the cart?
    By PetesTown in forum General Questions
    Replies: 2
    Last Post: 28 Jul 2007, 07:14 PM
  4. Wishlist code in the language file - what's it for?
    By robax in forum General Questions
    Replies: 2
    Last Post: 8 Apr 2007, 11:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR