I have version 3.07, maybe it was badly agued which would be the java file to be corrected
Thank you MC
I have version 3.07, maybe it was badly agued which would be the java file to be corrected
Thank you MC
Giovanni,
Zen Cart V2.1
Hello,
I upgraded a client's website to the latest version 1.5.5e
I installed Dynamic Price Updater module but it keeps sending the following warning in the logs
@Dr Byte kindly help
[14-Jul-2017 12:37:22 UTC] Request URI: /ajax.php?act=DPU_Ajax&method=dpu_update, IP address: 192.168.200.28
#1 header() called at [/home/yabba1/public_html/includes/classes/dynamic_price_updater.php:463]
#2 DPU->dumpOutput() called at [/home/yabba1/public_html/includes/classes/dynamic_price_updater.php:68]
#3 DPU->getDetails() called at [/home/yabba1/public_html/includes/classes/ajax/zcDPU_Ajax.php:16]
#4 zcDPU_Ajax->dpu_update()
#5 call_user_func() called at [/home/yabba1/public_html/ajax.php:72]
[14-Jul-2017 12:37:22 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/yabba1/public_html/includes/classes/ajax/zcDPU_Ajax.php:1) in /home/yabba1/public_html/includes/classes/dynamic_price_updater.php on line 463
I'm not the good DrByte, but it appears that somehow there is a character before the opening <?php in the file: includes/classes/ajax/zcDPU_Ajax.php that is on your server. I have just downloaded the plugin and at least in the file viewer I am looking at such a character does not exist. How was the file uploaded/installed?
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Further assistance regarding the warning message of Headers already sent can be found at this FAQ: https://www.zen-cart.com/content.php...s-already-sent
Please report back what you find as it would be nice to know if the original fileset was found to cause this issue so that it could be prevented for others. I don't have those error messages in the installation that I have so would have to figure out what caused the introduction of an additional character (visible or non-printed) at least to ensure it wouldn't be present for others.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
I just checked and there is no character at the opening
<?php
class zcDPU_Ajax extends base
{
function dpu_update()
What else could be the reason for this?
here is a complete log file
[17-Jul-2017 09:57:47 UTC] Request URI: /ajax.php?act=DPU_Ajax&method=dpu_update, IP address: 192.168.200.28
#1 header() called at [/home/*****/public_html/includes/classes/dynamic_price_updater.php:463]
#2 DPU->dumpOutput() called at [/home/yabba1/public_html/includes/classes/dynamic_price_updater.php:68]
#3 DPU->getDetails() called at [/home/yabba1/public_html/includes/classes/ajax/zcDPU_Ajax.php:15]
#4 zcDPU_Ajax->dpu_update()
#5 call_user_func() called at [/home/yabba1/public_html/ajax.php:72]
[17-Jul-2017 09:57:47 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/******/public_html/includes/classes/ajax/zcDPU_Ajax.php:1) in /home/yabba1/public_html/includes/classes/dynamic_price_updater.php on line 463
Any help will be appreciated
The file was somehow uploaded with the incorrect file encoding (UTF-8/BOM) so there is an "invisible" character at the beginning of that file. I have uploaded to github just the change to the encoding (ANSI) to: https://github.com/mc12345678/Dynami...79eea406dd84cf.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
It appears using your file has fixed the problem!
Thanks a lot :)
Much appreciated!
Now got one more warning
[18-Jul-2017 06:57:14 UTC] Request URI: /ajax.php?act=DPU_Ajax&method=dpu_update, IP address: 192.168.200.28
#1 DPU->removeExtraSelections() called at [/home/yabba1/public_html/includes/classes/dynamic_price_updater.php:62]
#2 DPU->getDetails() called at [/home/yabba1/public_html/includes/classes/ajax/zcDPU_Ajax.php:14]
#3 zcDPU_Ajax->dpu_update()
#4 call_user_func() called at [/home/yabba1/public_html/ajax.php:72]
[18-Jul-2017 06:57:14 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/yabba1/public_html/includes/classes/dynamic_price_updater.php on line 150
How do I get this fixed?
Is this version of this module GitHub
https://github.com/Zen4All-nl/Zen-Ca...eases/tag/v3.1
Same as this one
https://www.zen-cart.com/downloads.php?do=file&id=1301 ?
In Github version there is no ajax folder in includes/classes
If I install GitHub version will it work with 1.5.5e?
Bookmarks