Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Nov 2023
    Location
    Hounslow
    Posts
    92
    Plugin Contributions
    0

    Default payment module and am having issues with getting any sort of information from the Zen

    zc v1.5.8

    I'm in the middle of making a payment module and am having issues with getting any sort of information from the Zen Cart system from any of my files from within the "/includes/modules/payment/MYPAYMEMPLUGIN/files in this folder.
    Is this normal?

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,842
    Plugin Contributions
    124

    Default Re: payment module and am having issues with getting any sort of information from the

    You likely have debug logs in your /logs folder that need to be fixed.
    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.

  3. #3
    Join Date
    Nov 2023
    Location
    Hounslow
    Posts
    92
    Plugin Contributions
    0

    Default Re: payment module and am having issues with getting any sort of information from the

    nope I'm on top all of them as and when they show and it is currently empty (which is good to hear) and I'm also on top of server logs also regularly check them also dev tools i bacily live in dev tools.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,842
    Plugin Contributions
    124

    Default Re: payment module and am having issues with getting any sort of information from the

    What exactly is happening? I interpreted your original post to mean "Going to admin > modules > payment" gives a white screen.

    What are your symptoms?
    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.

  5. #5
    Join Date
    Nov 2023
    Location
    Hounslow
    Posts
    92
    Plugin Contributions
    0

    Default Re: payment module and am having issues with getting any sort of information from the

    Quote Originally Posted by swguy View Post
    What exactly is happening? I interpreted your original post to mean "Going to admin > modules > payment" gives a white screen.

    What are your symptoms?
    The only variables (that's everything from plugin defined in database etc... to session's etc..) I can get to use or view are the one's I set within the folder part of the payment module (I've installed and then cloned: this https://www.zen-cart.com/downloads.php?do=file&id=2388).
    I have tried removing my htaccess file thinking it was maybe that but the same,
    I've changed the name of the plugin but still the same,
    I'm just know downloaded a fresh copy of ZC v1.5.8 and running a compare using beyond-compare and see if that helps,
    would you know what maybe hepping as to me it seems like ZC is seeing this folder as a outsider instead of part of the family lol.
    Last edited by OJ_SIMON; 22 May 2024 at 11:12 AM.

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,842
    Plugin Contributions
    124

    Default Re: payment module and am having issues with getting any sort of information from the

    Try removing the clone files and see if that fixes it.

    Review https://docs.zen-cart.com/dev/code/m...clone_payment/
    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.

  7. #7
    Join Date
    Nov 2023
    Location
    Hounslow
    Posts
    92
    Plugin Contributions
    0

    Default Re: payment module and am having issues with getting any sort of information from the

    Quote Originally Posted by swguy View Post
    Try removing the clone files and see if that fixes it.

    Review https://docs.zen-cart.com/dev/code/m...clone_payment/
    I've look at that often on the way of making this plugin, but I will say I've seen this: Note: Be sure the filename you choose does not have an underscore (_) in it. but at the same time see core payment plugin's and a few other one's are using _ within the naming so I have also ?

  8. #8
    Join Date
    Nov 2023
    Location
    Hounslow
    Posts
    92
    Plugin Contributions
    0

    Default Re: payment module and am having issues with getting any sort of information from the

    Quote Originally Posted by swguy View Post
    Try removing the clone files and see if that fixes it.
    Nope just the same if I replace the API key from hardcoded to using the stored database stored configuration_key name/value the plugin does not load the form due to invalid key of null but as soon as I put back the key hardcoded it works?

  9. #9
    Join Date
    Nov 2023
    Location
    Hounslow
    Posts
    92
    Plugin Contributions
    0

    Default Re: payment module and am having issues with getting any sort of information from the

    one other thing I could maybe try, what would be the best way to clear all session var's then let ZC make what it needs to a fresh?
    would it be just session destroy ?

  10. #10
    Join Date
    Nov 2023
    Location
    Hounslow
    Posts
    92
    Plugin Contributions
    0

    Default Re: payment module and am having issues with getting any sort of information from the

    file compare only showed one difference and that was in my htaccess file in: includes/.htaccess
    and this was on line #32 it read > <FilesMatch "(?i).*\.(js|css|html?|jpe?g|gif|webp|png|otf|ico|cur|map|eot|svgz?|ttf|woff2?|p hp|xml|xsl)$">
    So i changed it to what the fresh copy of ZC had to this: <FilesMatch "(?i).*\.(js|css|html?|jpe?g|gif|webp|png|otf|ico|cur|map|eot|svgz?|ttf|woff2?|x ml|xsl)$"> "removing the php.

    Code:
    ## @copyright Copyright 2003-2022 Zen Cart Development Team
    # @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    # @version $Id: DrByte 2020 Oct 29 Modified in v1.5.8-alpha $
    #
    # This is used with Apache WebServers
    #
    # The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain approved exceptions
    # It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
    # Will also prevent people from seeing what is in the dir. and any sub-directories
    #
    # For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the AllowOverride configuration in your apache/conf/httpd.conf file.
    # Additionally, if you want the added protection offered by the OPTIONS directive below, you'll need to add 'Options' to the AllowOverride list, if 'All' is not specified.
    # Example:
    #<Directory "/usr/local/apache/htdocs">
    #  AllowOverride Limit Options Indexes
    #</Directory>
    ###############################
    
    # deny *everything*
    <FilesMatch ".*">
      <IfModule mod_authz_core.c>
        Require all denied
      </IfModule>
      <IfModule !mod_authz_core.c>
        Order Allow,Deny
        Deny from all
      </IfModule>
    </FilesMatch>
    
    # but now allow just *certain* necessary files:
    <FilesMatch "(?i).*\.(js|css|html?|jpe?g|gif|webp|png|otf|ico|cur|map|eot|svgz?|ttf|woff2?|xml|xsl)$">
      <IfModule mod_authz_core.c>
        Require all granted
      </IfModule>
      <IfModule !mod_authz_core.c>
        Order Allow,Deny
        Allow from all
      </IfModule>
    </FilesMatch>
    
    IndexIgnore */*
    
    <limit POST PUT>
      <IfModule mod_authz_core.c>
        Require all denied
      </IfModule>
      <IfModule !mod_authz_core.c>
        Order Allow,Deny
        Deny from all
      </IfModule>
    </limit>
    
    
    ## NOTE: If you want even greater security to prevent hackers from running scripts in this folder, uncomment the following line (if your hosting company will allow you to use OPTIONS):
    # OPTIONS -Indexes -ExecCGI
    
    
    
    ##################
    ## Optional caching improvements
    ## Requires mod_header and mod_deflate to be enabled within Apache
    ##################
    <IfModule mod_headers.c>
      Header unset Pragma
      FileETag None
      Header unset ETag
      #Header set Cache-Control "no-transform"
      <FilesMatch "(?i).*\.(ico|jpe?g|gif|webp|png|otf|swf|flv|ttf|woff|eot|svg)$">
        Header set Cache-control "max-age=864000, public, must-revalidate"
        Header unset Last-Modified
      </FilesMatch>
      <FilesMatch "(?i).*\.(html|htm|xml|txt|xsl)$">
        Header set Cache-control "max-age=7200, must-revalidate"
      </FilesMatch>
    </IfModule>
    <IfModule mod_deflate.c>
      <FilesMatch "(?i)\.(js|css)$">
        SetOutputFilter DEFLATE
      </FilesMatch>
    </IfModule>
    
    ##################
    ## Optional improvements
    ## Requires mod_expires to be enabled within Apache
    ##################
    <ifmodule mod_expires.c>
      ExpiresActive On
      ExpiresDefault A300
      ExpiresByType application/x-javascript A3600
      ExpiresByType text/css A3600
      ExpiresByType image/gif A604800
      ExpiresByType application/pdf A604800
      ExpiresByType text/html A300
      ExpiresByType image/x-icon A86400
      ExpiresByType image/jpeg A2592000
      ExpiresByType image/png A2592000
      ExpiresByType image/svg A2592000
    </ifmodule>
    
    
    know I get 403 Forbidden but if i put back the php I do not get the 403.

    and if it helps this is my .htaccess root file:

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Linkpoint Payment Module Having Issues
    By brandonturpin in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 24 Aug 2017, 12:13 AM
  2. having some issues with ez pages, header getting cut off bad positioning etc...
    By ICwater in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 21 Nov 2012, 08:17 PM
  3. Having trouble with the SIM module and Authorize.net
    By standnbang in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 4 Feb 2009, 09:11 AM
  4. Problems with getting of the Zen-cart logo and tagline
    By Trinicha in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Nov 2007, 03:04 AM

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