Error in Opensource v4.0

mariano tomasini Posted in General Discussion 8 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 'timeupdated' at row 1 INSERT INTO ossnentities (owner_guid, type, subtype, time_created, time_updated, permission, active) VALUES ('3', 'user', 'covertime', '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): ossninclude('C:/wamp/www/oss...', Array) #8 C:wampwwwossnlibrariesossn.lib.plugins.php(75): ossnview('components/Ossn...', Array) #9 C:wampwwwossncomponentsOssnProfileossncom.php(248): ossnpluginview('profile/pages/p...', Array) #10 [internal function]: profilepagehandler(Array, 'u') #11 C:wampwwwossnlibrariesossn.lib.page.php(67): calluserfunc('profilepageha...', Array, 'u') #12 C:wampwwwossnindex.php(21): ossnloadpage('u', 'locoto') #13 {main}
in Friends I get this error:
exception 'OssnDatabaseException' with message 'Incorrect integer value: '' for column 'timeupdated' at row 1 INSERT INTO ossnentities (owner_guid, type, subtype, time_created, time_updated, permission, active) VALUES ('2', 'user', 'covertime', '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): ossninclude('C:/wamp/www/oss...', Array) #8 C:wampwwwossnlibrariesossn.lib.plugins.php(75): ossnview('components/Ossn...', Array) #9 C:wampwwwossncomponentsOssnProfileossncom.php(248): ossnpluginview('profile/pages/p...', Array) #10 [internal function]: profilepagehandler(Array, 'u') #11 C:wampwwwossnlibrariesossn.lib.page.php(67): calluserfunc('profilepageha...', Array, 'u') #12 C:wampwwwossnindex.php(21): ossnloadpage('u', 'clubsapo/friend...') #13 {main}

in administrator / adduser / create user process...

exception 'OssnDatabaseException' with message 'Incorrect integer value: '' for column 'timeupdated' at row 1 INSERT INTO ossnentities (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): includeonce('C:\wamp\www\oss...') #5 C:wampwwwossnsystemhandlersactions.php(12): ossnaction('admin/add/user') #6 {main}

Replies
Breton Wilgo sales Replied 8 years ago

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

Arabic Mariano tomasini Replied 8 years ago

nothing yet