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?
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.
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.
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?
Re: payment module and am having issues with getting any sort of information from the
Quote:
Originally Posted by
swguy
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.
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/
Re: payment module and am having issues with getting any sort of information from the
Quote:
Originally Posted by
swguy
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 ?
Re: payment module and am having issues with getting any sort of information from the
Quote:
Originally Posted by
swguy
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?
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 ?
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: