includes/classes/upload.php - when opening up original and also when pasting in the new code get "there is a syntax error on line 173"
Code:$this->extensions = [$extensions]; } } else { $this->extensions = [];
includes/classes/upload.php - when opening up original and also when pasting in the new code get "there is a syntax error on line 173"
Code:$this->extensions = [$extensions]; } } else { $this->extensions = [];
That's because you're using an old version of PHP.
See fix: https://github.com/zencart/zencart/c...59047741b996f6
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
... then your Dreamweaver support for PHP versions is going to be soon outdated. In PHP 5.4 support was added for short syntax for arrays using square-brackets instead of spelling out array(). If you want your Dreamweaver PHP auto-inspect to understand newer syntaxes, you'll want to investigate updating that feature.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Bookmarks