Using OSSN 4.0 with SQL Strict mode

antoine thierry Posted in Technical Support 10 years ago

Hi guys

i've today finally manage to set up OSSN 4.0 on my production server
it runs on SQL strict mode ( STRICT_ALL_TABLES in my.cnf)

id did not work after base install

what i manage to edit in the code db to make it work was

  • editing ossn_object db structure of title field by adding a default NULL value
  • editing classes/OssnDatabase.php file by adding, in the insert function, the line
    $values = str_replace("'',", "NULL,",$values);
    between $values= ... line and $query= ... line
Replies
German Michael Zülsdorff Replied 10 years ago

@ Saberi bin Pendi
See http://www.tocker.ca/2014/01/14/making-strict-sql_mode-the-default.html
and refer to the MySQL manual for more information.

Is your server configured like that? If not, and if you're not getting any database errors with Ossn you can ignore this thread. Otherwise please provide your error log and the my.cnf file.

Burmese Saberi bin Pendi Replied 10 years ago

Can you give me screenshot / pictures for example?

French Antoine thierry Replied 10 years ago

One small edit

you also need to add "NULL" default to the item_guid of the ossn_notifications table

Dutch Tunzxywalex Oyewale Replied 10 years ago

Good thank

Indonesian Arsalan Shah Replied 10 years ago

Good solution,