Error in Opensource v4.0

mariano tomasini Posted in General Discussion 10 years ago

test in WampServer Version 3.0.0 64bit
in profile I get this error:
exception 'OssnDatabaseException' with message 'Incorrect integer value: '' for column 'time_updated' at row 1 INSERT INTO ossn_entities (owner_guid, type, subtype, time_created, time_updated, permission, active) VALUES ('3', 'user', 'cover_time', '1465604951', '', '2', '1'); ' in C:wampwwwossnclassesOssnDatabase.php:77 Stack trace: #0 C:wampwwwossnclassesOssnDatabase.php(44): OssnDatabase->execute() #1 C:wampwwwossnclassesOssnEntities.php(99): OssnDatabase->insert(Array) #2 C:wampwwwossnclassesOssnEntities.php(202): OssnEntities->add() #3 C:wampwwwossnclassesOssnUser.php(1056): OssnEntities->save() #4 C:wampwwwossncomponentsOssnProfileclassesOssnProfile.php(184): OssnUser->save() #5 C:wampwwwossncomponentsOssnProfilepluginsdefaultprofilepagesprofile.php(16): OssnProfile->getCoverURL(Object(OssnUser)) #6 C:wampwwwossnlibrariesossn.lib.views.php(27): include('C:\wamp\www\oss...') #7 C:wampwwwossnlibrariesossn.lib.views.php(50): ossn_include('C:/wamp/www/oss...', Array) #8 C:wampwwwossnlibrariesossn.lib.plugins.php(75): ossn_view('components/Ossn...', Array) #9 C:wampwwwossncomponentsOssnProfileossn_com.php(248): ossn_plugin_view('profile/pages/p...', Array) #10 [internal function]: profile_page_handler(Array, 'u') #11 C:wampwwwossnlibrariesossn.lib.page.php(67): call_user_func('profile_page_ha...', Array, 'u') #12 C:wampwwwossnindex.php(21): ossn_load_page('u', 'locoto') #13 {main}
in Friends I get this error:
exception 'OssnDatabaseException' with message 'Incorrect integer value: '' for column 'time_updated' at row 1 INSERT INTO ossn_entities (owner_guid, type, subtype, time_created, time_updated, permission, active) VALUES ('2', 'user', 'cover_time', '1465605517', '', '2', '1'); ' in C:wampwwwossnclassesOssnDatabase.php:77 Stack trace: #0 C:wampwwwossnclassesOssnDatabase.php(44): OssnDatabase->execute() #1 C:wampwwwossnclassesOssnEntities.php(99): OssnDatabase->insert(Array) #2 C:wampwwwossnclassesOssnEntities.php(202): OssnEntities->add() #3 C:wampwwwossnclassesOssnUser.php(1056): OssnEntities->save() #4 C:wampwwwossncomponentsOssnProfileclassesOssnProfile.php(184): OssnUser->save() #5 C:wampwwwossncomponentsOssnProfilepluginsdefaultprofilepagesprofile.php(16): OssnProfile->getCoverURL(Object(OssnUser)) #6 C:wampwwwossnlibrariesossn.lib.views.php(27): include('C:\wamp\www\oss...') #7 C:wampwwwossnlibrariesossn.lib.views.php(50): ossn_include('C:/wamp/www/oss...', Array) #8 C:wampwwwossnlibrariesossn.lib.plugins.php(75): ossn_view('components/Ossn...', Array) #9 C:wampwwwossncomponentsOssnProfileossn_com.php(248): ossn_plugin_view('profile/pages/p...', Array) #10 [internal function]: profile_page_handler(Array, 'u') #11 C:wampwwwossnlibrariesossn.lib.page.php(67): call_user_func('profile_page_ha...', Array, 'u') #12 C:wampwwwossnindex.php(21): ossn_load_page('u', 'clubsapo/friend...') #13 {main}

in administrator / adduser / create user process...

exception 'OssnDatabaseException' with message 'Incorrect integer value: '' for column 'time_updated' at row 1 INSERT INTO ossn_entities (owner_guid, type, subtype, time_created, time_updated, permission, active) VALUES ('4', 'user', 'birthdate', '1465605631', '', '2', '1'); ' in C:wampwwwossnclassesOssnDatabase.php:77 Stack trace: #0 C:wampwwwossnclassesOssnDatabase.php(44): OssnDatabase->execute() #1 C:wampwwwossnclassesOssnEntities.php(99): OssnDatabase->insert(Array) #2 C:wampwwwossnclassesOssnUser.php(93): OssnEntities->add() #3 C:wampwwwossnactionsadministratoruseradd.php(77): OssnUser->addUser() #4 C:wampwwwossnlibrariesossn.lib.actions.php(51): include_once('C:\wamp\www\oss...') #5 C:wampwwwossnsystemhandlersactions.php(12): ossn_action('admin/add/user') #6 {main}

Replies
Breton Wilgo sales Replied 10 years ago

1 - Open the file classes/OssnEntities.php
2 - in line 20 change from $this->time_updated=''; to $this->time_updated=time();
3 - Save

Arabic Mariano tomasini Replied 10 years ago

nothing yet