Using OSSN 4.0 with SQL Strict mode

antoine thierry Posted in Technical Support 9 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 ( STRICTALLTABLES 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 9 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 9 years ago

Can you give me screenshot / pictures for example?

French Antoine thierry Replied 9 years ago

One small edit

you also need to add "NULL" default to the itemguid of the ossnnotifications table

Dutch Tunzxywalex Oyewale Replied 9 years ago

Good thank

Indonesian Arsalan Shah Replied 9 years ago

Good solution,