Fatal error in OssnProfile Component

Dimitris Kerestetzis Posted in Beginning Developers 8 years ago

Hello,

I create a file inside the pages/ in the component OssnProfile and I receive this fatal error when I am trying to create a database object
Here the error

 PHP Fatal error:  Class 'OssnDatabase' not found in /home/de303183/public_html/dev/components/OssnProfile/plugins/default/profile/pages/image.php on line 13

Why?

Replies
Indonesian Arsalan Shah Replied 8 years ago

We didn't have table called ossn_deepost. We didn't have any field in OssnDatabase called blog.
Since you edited core files , we unable to provide support without know what is wrong.

gr Dimitris Kerestetzis Replied 8 years ago

And an other problem is after to try insert a blob value in mysql table I receive the following error.....

exception 'OssnDatabaseException' with message 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz??????????????????????????????????????' at line 1 INSERT INTO ossn_deepost (`guid`, `coverid`, `thumbid`, `image_blob`, `coverurl`, `coverfullurl`, `thumburl`, `thumburlfull`, `title`, `bodytext`, `time_created`) VALUES ('2', '1379', '1380', '����' in /home/de303183/public_html/dev/classes/OssnDatabase.php:77 Stack trace: #0 /home/de303183/public_html/dev/classes/OssnDatabase.php(44): OssnDatabase->execute() #1 /home/de303183/public_html/dev/components/OssnProfile/actions/deepost/deepostaction.php(120): OssnDatabase->insert(Array) #2 /home/de303183/public_html/dev/libraries/ossn.lib.actions.php(51): include_once('/home/de303183/...') #3 /home/de303183/public_html/dev/system/handlers/actions.php(12): ossn_action('profile/deepost...') #4 {main}