Menu

#1 oci-lob Fatal error: Call to a member function load()

open
nobody
None
5
2008-12-08
2008-12-08
Kubis_Bubis
No

hello, we are getting this error when posting comments on articles (data column comments.comment is stored in BLOB)

Fatal error: Call to a member function load() on a non-object in /var/www/html/siren/includes/database.oci8.inc on line 414

function db_decode_blob($data) {
// In case of Oracle LOBs are read via LOB->load().
return $data->load();

---------sysinfo------------------------
PHP Version 5.2.6

System Linux 2.6.18-92.1.10.el5xen #1 SMP Wed Jul 23 04:11:52 EDT 2008 x86_64
Build Date Dec 4 2008 10:48:14
Configure Command './configure' '--with-apxs2' '--disable-cgi' '--with-oci8' '--enable-zip' '--enable-mbstring' '--with-mcrypt'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/lib
Loaded Configuration File /usr/local/lib/php.ini
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams zip, php, file, data, http, ftp
Registered Stream Socket Transports tcp, udp, unix, udg
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*

OCI8 Support enabled
Version 1.2.5
Revision $Revision: 1.269.2.16.2.43 $
Active Persistent Connections 0
Active Connections 0
Oracle Version 10.1
Compile-time ORACLE_HOME /opt/oracle/OraHome10gR2
Libraries Used no value
Temporary Lob support enabled
Collections support enabled

Directive Local Value Master Value
oci8.default_prefetch 10 10
oci8.max_persistent -1 -1
oci8.old_oci_close_semantics 0 0
oci8.persistent_timeout -1 -1
oci8.ping_interval 60 60
oci8.privileged_connect Off Off
oci8.statement_cache_size 20 20

Discussion

  • Kubis_Bubis

    Kubis_Bubis - 2008-12-08

    we are getting this error only if some comment is submited with "Preview" button. When you are submitting empty field by "Preview", Comment field is required screen shows. Then something you write into, then "Save" voila, it saves!

     
  • Kubis_Bubis

    Kubis_Bubis - 2008-12-09

    when you want to edit existing comment, comment body is not loaded, error occures:

    * recoverable fatal error: Object of class OCI-Lob could not be converted to string in /var/www/html/siren/includes/bootstrap.inc on line 722.

    * warning: preg_match() expects parameter 2 to be string, object given in /var/www/html/siren/includes/bootstrap.inc on line 725.

    bootstrap.inc on line 725:
    function drupal_validate_utf8($text) {
    if (strlen($text) == 0) {
    return TRUE;
    }
    return (preg_match('/^./us', $text) == 1);
    }

     

Log in to post a comment.

MongoDB Logo MongoDB