Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

1525 - Incorrect DATETIME value: '' error


Recommended Posts

OK , Brand new user here and trying to get the 2.3.1 store to launch and I get 

1525 - Incorrect DATETIME value: ''

select banners_id, date_scheduled from banners where date_scheduled != ''


Can someone give me a hint where to look for this ?

Link to comment
Share on other sites

Go into catalog/includes/functions/banner.php and find tep_activate_banners() function. 

Change the $banners_query line to the following:

$banners_query = tep_db_query("SELECT banners_id, date_scheduled FROM banners WHERE date_scheduled IS NOT NULL");



Edited by Demitry

osCommerce: made for programmers, ...because store owners do not want to be programmers.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...