IntegraMOD / IntegraMOD151

The most complete premodded forum software
http://integramod.com
4 stars 4 forks source link

Default Database Dates #41

Closed MWE001 closed 4 years ago

MWE001 commented 8 years ago

Boys and gents, Zero Values will no longer work for default dates and or times . 0000-00-00 It will stop an install cold. I am not sure of the fix right at the moment, but my dirty fix was to replace all those with 1969-10-10 Kinda of bogus but worked. I suppose just filling the 0000 with anything will suffice to. Not sure how to truly fix it. Most of the places I have gone are saying just to toss a date in there as well which is kind of stupid actually. That is just to down and dirty for a piece of software to use.

Necessary though? I'm sure

MWE001 commented 8 years ago

Also as far as schemas go, i am getting this as well.

An error occurred trying to update the database Field 'cat_desc' doesn't have a default value

MWE001 commented 8 years ago

Am I not sure that this is just a windows error on WAMP server? I know the date is real but why can't I set text to have a default value of ' ' ? I know windows don't like it. I hope that is not it. I have no test room on my hosting package. Localhost is all I got.

MWE001 commented 8 years ago

It was a windows thing as far as the no default text goes. I had to find in my.ini

sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

Comment it out and add sql_mode='MYSQL40'

Now that that is solved, i am all but 100% sure the No Zero date thing is legitimate.

vendethiel commented 8 years ago

We need to fix this...

MWE001 commented 8 years ago

Yeah the 0 date and time thing is legit as far as mysql goes. The supported range is '1000-01-01' to '9999-12-31. I am not sure what version of MySQL set this standard but it is what it is.

As far as my other error goes that I posted here, is that a worry errror as well? I'm, not really sure it is a Windows thing or what. I did the fix and it worked ironically enough. so I would have to say if anyone has their server set like mine was as far as the sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" goes, are they going to have the same issue?

So far i will say the master 150 here at Git is a decent copy thus far. I have been running it through its paces and minus this and the phpBb Security thing, it has been pretty much flawless thus far save a couple template issues.

vendethiel commented 8 years ago

It's an error we need to fix.

The issue is that the newest versions of MySQL and MariaDB are "stricter" than the older versions. So we need to fix all of those going forward.

MWE001 commented 8 years ago

Not sure if this was worked on today but this time the install was flawless, up until I had to delete the install directory at which point in time I was banned from my own install ;-) I never even got to try to install Prill

IntegraMOD commented 8 years ago

try deleting any cookies and cached data for your wamp server from your browser. you said you were also banned from my beta server? Maybe try another browser and revisit the demo server?

MWE001 commented 8 years ago

Yeah I gave up on it for a short bit and decided to get nostalgic and play some Call of Duty World at War. lol I'll give it a go in the morning and see if that was the issue. I'm hoping so. it was going to smooth for it to error like that.

MWE001 commented 8 years ago

Hey guys sorry I have not go try this today yet. I do plan on trying again with all cookies and cache deleted in browser. I got busy today with a new bootstrap template for another CMS (for flight simulator) I am working on.

MWE001 commented 7 years ago

Did we ever com e up with a easy fix for this?

vendethiel commented 7 years ago

I think we can go for NOW().

MWE001 commented 7 years ago

Yeah I can easily see that working for the default initial post. I bumped in to it one or two more times as well, but other than the initial post entry in the install schema, I don't recall what it was. I would need to go look again.

Nice call.

MWE001 commented 7 years ago

and is integra down? I cant get it to load. I have not been able to since I uploaded that file for you that day.

vendethiel commented 7 years ago

and is integra down? I cant get it to load. I have not been able to since I uploaded that file for you that day.

Seems to work here :)

IntegraMOD commented 7 years ago

its back up. Cpanel/WHM updated and broke everything. Took 2 days to fix it but server seems good now

MWE001 commented 7 years ago

Ah ok. Glad to hear all is well, sorry to hear it went south. I know how that goes.

MWE001 commented 7 years ago

I just grabbed the 151 from your post helter. I'm going to attempt to give it a go. All I have to work on is WAMP. My host package is full.

vendethiel commented 7 years ago

I managed to install latest on MAMP, but it doesn't have the newest goodies.

vendethiel commented 7 years ago

I need to reinstall with the SQL strict mode. Or maybe someone else can report :-).

MWE001 commented 5 years ago

Is this still a thing? If you all have the latest updated version I can give it a quick install on both my servers and see. I got Windows as well as my production Linux machine. And I have strict mode enabled on both.

vendethiel commented 5 years ago

Please do, I’m afraid there might be some missing still,

MWE001 commented 5 years ago

Is the copy here on Git the most recent one? If so I'll grab it and do a install tomorrow afternoon.

vendethiel commented 5 years ago

Yes, it should be good to go.

MWE001 commented 5 years ago

This is 100% a Windows issue. Nix servers will give a warning which 99% of the time people shut them up anyhow by default so it is no biggie. People are basically screaming at developers to allow text in a "TEXT" field but I read it was a memory saver (??).

So the short answer is, who is really installing this on Windows anyhow but for testing and local Dev so as to not develop on a live website? No one at all. So this error is useless to chase and should be closed.

However, due to the people that DO use a Windows stack to develop and test on, can something be added to chmod when it detects that it is NOT nix and give them a message to say to disable strict mode on Windows servers? I'm not real sure. Just scraping the bottom of the barrel here.

vendethiel commented 5 years ago

I'd rather we fix the underlying issue at some point. You're right we can add a warning in the meantime, but it's because I didn't install a newer mySQL version that this isn't fixed yet. I blame my new job for the lack of time..:)

vendethiel commented 4 years ago

I think it is fine now. I install IM on recent mysqls fairly often.