-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
warning in > php 7.1 #4
Comments
What version of Zen Cart? That |
Let me guess ... Zen Cart 1.5.6, right? That's a result of the behavioral change made via this Zen Cart commit. I'm wondering how many other plugins are going to be affected, since there's now no way of using those base language elements (like |
ok. i probably should have looked at this closer. u r correct. zc 1.5.6 i will revert and look at that PR. hard to imagine the load order changing this way, but somehow not surprised. ill confirm later today. thanks. |
I'll await your assessment, @proseLA. |
@lat9 you are 100% correct. the changing of the load order is the problem. it seems if we were to define
(or whatever language file one uses...) we would need to add: (or whatever format one wants to use...) then it looks like ZC will not log an error when the define happens again. |
Yes, but the whole point was to re-use the base language's |
@lat9 on this issue, i can see both sides of the discussion. i do not feel strongly either way on it, and even if i did, i no longer get much joy in my participation/contributions on the project. i suppose an argument can be made that it is a defines file, and as such should not include any logic. given all of that, i think the choices are:
i would think the last option probably makes the most sense to me. but i can imagine you may have additional ideas or feel differently about the choice. if i can help you out in any way, please let me know. best. |
@proseLA, I'm thinking to go with bullet-point 4 for the change ... as you indicated. It just bugs the heck out of me that the change is needed at all. |
Actually, I chose to move those date-format settings into the 'main-line' of the report itself. Let me know if that works for you! |
@lat9, first off, these upgrades (v155 to v156) should NOT be this hard, oy! i have done far too much customizations over the years. i was actually looking at this yesterday, and it seemed to make no sense why there were 4 separate constants. they are all the same. i tried playing around to get it to work, but alas too late and too much stuff going on. this looks like it will work. i will give it a try and report back post haste. i will also make another attempt at using 1 constant. unless you can enlighten me as to why 4 might be required. best. |
@proseLA, I kept those common constants so that I didn't need to make further updates. Until I get around to totally restructuring this report, I'm hesitant to make additional changes. |
OK. this worked fine. in addition, i think we can get by with 1 constant. but frankly i'm with you, lets not restructure the whole thing.... i have also noticed a peculiar little thing. if one wanted to look at info on a weekly basis for last month, the week starts on the day that the 1st of the month is. so the first week is always the 1st to the 7th; irregardless if the first is a tuesday or a friday, etc. manipulating dates is always tricky. but i'm totally comfortable with it the way that you currently have it. it works... clients have not complained about the week thing.... let's move on. thanks again for all your work! |
Re-opening. FWIW, I keep issues open until they've been released! |
sales_report/YOUR_ADMIN/includes/languages/english/stats_sales_report.php
Line 125 in 889669f
cindy, this line now throws a warning. i believe the code should have quotes around it.
if (strtolower('DATE_FORMAT') == 'm/d/y') {
also on line 132.
The text was updated successfully, but these errors were encountered: