Just uploaded an updated version (2.1) to incorporate that direction in the README.txt file. When it has been fully reviewed/accepted it will be available from here.
Just uploaded an updated version (2.1) to incorporate that direction in the README.txt file. When it has been fully reviewed/accepted it will be available from here.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Version 2.1 is now available from here.
Again, only the instruction was updated/modified to explain to attempt to access the page using 'SSL', the code associated with the plugin's operation was not modified.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
FYI, re-reviewed the code a little. While the modification of the calling code to request that the page be loaded using the SSL is a definite help/good start, I found that in the header code, if the site had ENABLE_SSL set to true and the page was not requested to be served using the SSL, then it would redirect to the contact_us page... This code is an issue beginning at line 121 of: includes/modules/pages/ask_a_question/header_php.php
The line was:
and should be changed to:Code:if (ENABLE_SSL == 'true' && $request_type != 'SSL') { zen_redirect(zen_href_link(FILENAME_CONTACT_US, '', 'SSL')); }
As will be seen in Version 2.2 of this plugin that has just been uploaded and will be available from here once it has been reviewed and posted.Code:if (ENABLE_SSL == 'true' && $request_type != 'SSL') { zen_redirect(zen_href_link(FILENAME_ASK_A_QUESTION, zen_get_all_get_params(), 'SSL')); }
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Version 2.2 of the plugin is available from here.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
1.5.5d
latest version of Ask a Q.
getting error log:
TIAPHP Code:
Request URI: /, IP address: *******
#1 header() called at [/home/***/public_html/includes/templates/custom/common/html_header.php:17]
#2 require(/home/***/public_html/includes/templates/custom/common/html_header.php) called at [/home/***/public_html/index.php:43]
PHP Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/includes/languages/english/extra_definitions/digi/ask_a_question_defines.php:15) in /home/***/public_html/includes/templates/custom/common/html_header.php on line 17
Cleanest resolution appears to be to remove the closing PHP tag ( ?> ) at the end of includes/languages/english/extra_definitions/ask_a_question_defines.php. This will also then "remove" the additional line entry that appears after that. The "additional" line can remain, it is just that it currently appears after the closing PHP tag.
Thanks for pointing out that issue. If it doesn't prevent the warning from occurring, it still doesn't hurt to remove it as described.
Warning: Headers already sent...
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
@picandnix This issue does not occur in a fresh download; you accidentally added a line after the closing ?> in the file
includes/languages/english/extra_definitions/custom/ask_a_question_defines.php
Zen Cart core has stopped putting a final ?> at the end of files for this very reason - it's such an easy accidental mistake to make.
That Software Guy. My Store: Zen Cart Modifications
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.
I have added this plugin and do not get the option of asking a question on product pages. This is a very simple plugin to add but where did I go wrong.
I am using zencart version 155e with a template of westminster_new.
Any ideas?
Thanks in advance
Bookmarks