OCI_INVALID_HANDLE excpetion at updating BLOG in PhP

Hi all,
We're busy with implementing Typo3 (OpenSource CMS in PhP) on Oracle (XE universal).
We're running in a OCI_INVALID_HANDLE problem during page refreshes (CTRL-Refresh).
The actual error is:
Warning: OCI-Lob::save() http://oci-lob.save: OCI_INVALID_HANDLE in /var/www/sources/typo3_src-4.2.10/typo3/sysext/adodb/adodb/drivers/adodb-oci8.inc.php on line 696
The piece of code where it refers to is:
function UpdateBlob($table,$column,$val,$where,$blobtype='BLOB')
//if (strlen($val) < 4000) return $this->Execute("UPDATE $table SET $column=:blob WHERE $where",array('blob'=>$val)) != false;
switch(strtoupper($blobtype)) {
default: ADOConnection::outp("UpdateBlob: Unknown blobtype=$blobtype"); return false;
case 'BLOB': $type = OCI_B_BLOB; break;
case 'CLOB': $type = OCI_B_CLOB; break;
if ($this->databaseType == 'oci8po')
$sql = "UPDATE $table set $column=EMPTY_{$blobtype}() WHERE $where RETURNING $column INTO ?";
else
$sql = "UPDATE $table set $column=EMPTY_{$blobtype}() WHERE $where RETURNING $column INTO :blob";
$desc = OCINewDescriptor($this->connectionID, OCID_LOB);
$arr = array($desc,-1,$type);
if ($this->session_sharing_force_blob) $this->Execute('ALTER SESSION SET CURSOR_SHARING=EXACT');
$commit = $this->autoCommit;
if ($commit) $this->BeginTrans();
$rs = $this->_Execute($sql,$arr);
if ($rez = !empty($rs)) $desc->save($val); ##################### this is line 696
$desc->free();
if ($commit) $this->CommitTrans();
if ($this->session_sharing_force_blob) $this->Execute('ALTER SESSION SET CURSOR_SHARING=FORCE');
if ($rez) $rs->Close();
return $rez;
I've googled around for some time and also queried this forum, but could not find any suggestions. To me it seems quite ok what is done here. And it is some standard Typo3 code.
Could you please shine your light upon it and maybe give me some ideas to solve this?
Thank you very much.
Regards,
Martien

See my answer to your other post, inserting a text file into a clob field

Similar Messages

  • Why is my updated blog page not uploading?

    I am having a problem getting my new entry updated blog page to upload to my website. Is there a step I'm not doing and cannot find an answer in the "help" section or in here. I have done it before with ease. I have my upload ftp info all filled out correctly. I am not using a 3rd party app. Is there something I am to delete before the newer page is uploaded? Can't figure this out.

    How do you know it's not uploading?  If iWeb indicates that it has uploaded all files and it's not showing it could be as simple as clearing your browser's cache (Command+Option+E for Safari) and reloading the page.
    OT

  • Best way to update images using PHP / MySQL?

    HI
    I want to update images using PHP/MySQL, so users can update their images and maybe some other files but mainly images.
    thanks

    How messed up is this code?!
    <?php
    //connect to database
    $con = mysql_connect("testhost","testuser","pass");
    // file properies
    $file = $_FILES['image']['tmp_name'];
    if (!isset($file))
    echo "please select an image";
    else {
        $id = $_REQUEST['id_display'];
        $image = ($_FILES['image']['tmp_name']) ? file_get_contents ($_FILES['image']['tmp_name']) : '';
        $image_name = ($_FILES['image']['name']) ? addslashes($_FILES['image']['name']): '';
        $image_size = ($_FILES['image']['tmp_name']) ? getimagesize($_FILES['image']['tmp_name']): '';
        if ($image_size == FALSE)
        echo "You have not selected an image.";
        else {
            mysql_select_db("test_display", $con);
            mysql_query("UPDATE testtable SET image = '$image', imagename = '$image_name' WHERE id_display='$id'");
    ?>
    And the upload page....
    /*Update code */ /*End update code */                            

  • REST API Update blog post discussion

    Discuss the
    REST API Update blog post.

    Asymmetric keys stored in Key Vault are not intended for bulk data encryption. They are to be used as master keys. For bulk data encryption recommended method is to use an AES key and then WRAP this AES key with the RSA key stored in the key vault. Then
    Store the WRAPPED AES key and the URI to the key in Key Vault as metadata with the encrypted data.
    Depending on the scenario one could use a chain of keys that end in an asymmetric key in the Key Vault. It's difficult to recommend a solution without knowing your specific scenario. There can be several things to consider and many trade-off of different
    approaches.
    Reach out to the Key Vault Team via azurekeyvault at microsoft dot com if you want to discuss more.
    Thanks,
    Amit [ambapat@MSFT]

  • Multiple check boxes in an update form using php

    I have a database of the membership of a club. One field in the database is input by checking multiple check boxes. When the insert member record is submitted and multiple check boxes are selected, the information becomes an array of text separated by commas. When the user goes back to the update form, the check boxes are not showing checked in the appropriate fields. Please go to my test site where you will be able to see the code that I have created so far: http://www.usreboot.com/phphelp.php. You will find the php code for the update form in a pdf file located there. You will need a user name and password to look at the update record page. Here you go: user name: wyane, password: wayne. I have submitted this request in the past and have not found success so far. Thanks for your help, Wayne Rowlands

    I am so close. If a member has only one check box checked. I get the check box checked in the update form. Here is the updated code:
    If the member has a number of check boxes checked, none of the check boxes are checked. I am so close. Maybe you can figure out what I am missing.  Thanks, Wayne

  • Will Apple update Apache / MySQL / PHP on Tiger 10.4.11

    Recently, a scan was made on the two xServes that I have, both running 10.4.11 with only the web services set up. They are running the default bare bones setup for Tiger Server 10.4.11.
    The scan showed issues with the current install of Apache and PHP. I have been told I need to update the serves to a more secure version of Apache, Mysql, and PHP.
    Does anyone know if Apple is going to issue an update for this? Is my only option to patch together a more recent version of Apache, Mysql, and PHP to patch this?
    Or is Apple's answer to my dilemma is to just upgrade to Leopard?
    Thanks for your comments.

    Your choices here fairly limited; there's the upgrade Leopard, loading (for instance) the [MAMP|http://mamp.info] kit or other such kit and shut down the integrated stuff within Mac OS X Server, or rolling your own Apache and related pieces. If these are Intel Xserve boxes, then you could tactfully and officially drag your heels for a couple of months and upgrade to Snow Leopard.

  • Having problems updating blog

    I have tried several times tonight to update my blog, but it's not getting to my home page. Here's what I'm doing:
    1.) I'm publishing the page to the site folder on my desktop. I'm previewing it and it's fine.
    2.) I'm using Filezilla to transfer the files. I transfer the site folder and the index.html page. Everything is transferring fine.
    I cleared out the cache in Firefox and Safari. There's no update on my blog page. Any ideas? Thanks!

    Just want to update the problem everybody is having downloading  the new update.  If you waited, and didn't try to reinstall or anything, it looks like a "fix" is coming to you.  My previous ITunes was working fine so I decided to just wait it out and see if Apple would fix it. Knew it wasn't my computer because of all the same questions in this forum.  And I want to let all to know that when I signed on to my computer today an Apple Software Update window popped up on my desktop.  (Not the little one we've all been clicking on from the ITunes screen.). This came up right on my desktop.  I clicked on it to download and it worked like a charm.  After it was done downloading I pulled up ITunes and all looked great, all my purchases, songs were still there.  I then plugged in my IPod and then my IPad and they both synced, etc., ....all is well again!  So it you didn't try to re-install or anything, and have just been waiting and using your current version of ITunes, be patient.  Looks like the fix will be coming to you, too.

  • IWeb not updating blog site

    I am trying to update my blog but even tho iWeb on my computer shows the change, the archive on the web site also shows the change, the home page does not. Does anyone have any ideas for why this doesn't work? My blog page is:
    http://web.mac.com/glennsan/iWeb/San%20Diego%20Petersons/Blog/Blog.html
    if you want to take a look at it and see exactly what I am talking about.
    Thank you.
    20in Intel iMac   Mac OS X (10.4.8)   Powerbook 15in 1.67

    Hi,
    I see it all fine. You must have fixed it or....
    Maybe what you had was a cache problem. Since your pages weren't cached in my browser I saw it fine. But the old pages were most likely cached in your browser. After you update....clear the cache in Safari. Another method is to add a question mark at the end of the url address. That forces it to clear. Also over time it will natually update......so after awhile you will see the changes w/o clearing the cache.

  • Updating blog

    Everything was working fine, until the recent update (2.0.4). I use a 3rd party ftp (fetch atm) and now
    when i "publish to folder" and upload my site, my new (since last update 2.0.4) blog entries are no longer accessable. All blog entry Summaries are viewable on the first page are there, but when I click on an entry to view the entire entry it brings up the following msg...
    "Not Found
    The requested URL /OK/Pictureof_the_Day/Entries/2008/11/5Raksa:’a.html was not found on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."
    Prior to update, was a simple straightforward process...now it seems the update changed something so i have to subscribe to MobileMe to have this "feature"?? Is there anyway to continue using iWeb '08 without subscribing to MobileMe?

    I think some servers cannot deal with the curly apostrophe represented by the ’ in that page name. Sometimes this can be made to work by using Cyberduck instead of Fetch to upload your stuff. Also you can set iWeb to use straight apostrophe's instead of curly ones via Preferences > Automatic Correction > uncheck the box for smart quotes.

  • How to insert date into updated record (MySql, PHP)

    I want to be able to update an existing record and automatically include the date the change was made when I submit the data back to the MySql database.
    I saw this thread on how to insert the date on a new record using NOW()
    http://forums.adobe.com/thread/855152?decorator=print&displayFullThread=true#855152
    After reading it I successfully amended my insert.php page.
    Here's the code from my insert.php page which works nicely:
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO standardsclient_tbl (client_name, pantone_ref1, pantone_ref1_image, font_ref1, font_ref1_image, `date`) VALUES (%s, %s, %s, %s, %s, NOW())",
                           GetSQLValueString($_POST['client_name'], "text"),
                           GetSQLValueString($_POST['pantone_ref1'], "text"),
                           GetSQLValueString($_POST['pantone_ref1_image'], "text"),
                           GetSQLValueString($_POST['font_ref1'], "text"),
                           GetSQLValueString($_POST['font_ref1_image'], "text"),
                           GetSQLValueString($_POST['date'], "date"));
    This is the update.php page, I changed `date`=%s to `date`=NOW() but all this did was stop me from updating the record at all.
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE standardsclient_tbl SET client_name=%s, pantone_ref1=%s, pantone_ref1_image=%s, font_ref1=%s, font_ref1_image=%s, `date`=NOW() WHERE client_ID=%s",
                           GetSQLValueString($_POST['client_name'], "text"),
                           GetSQLValueString($_POST['pantone_ref1'], "text"),
                           GetSQLValueString($_POST['pantone_ref1_image'], "text"),
                           GetSQLValueString($_POST['font_ref1'], "text"),
                           GetSQLValueString($_POST['font_ref1_image'], "text"),
                           GetSQLValueString($_POST['date'], "date"),
                           GetSQLValueString($_POST['client_ID'], "int"));
    Can anyone see where I've gone wrong?
    Thanks

    In update query you have 6 %s but 7 GetSQLValueString. That's your problem.

  • How to update blog

    I've got a blog set up and working on a non-.mac website. But whenever I want to update the blog with a new entry, it has to reload the entire site, as opposed to just adding a new page and new directory and it takes forever. I'm using a web hosting account provided by GoDaddy and using their FTP client to update the site. (And you've just reached the limit of my computer knowledge about this sort of thing.)
    How do I simplify this process?
    Thank you.

    If I understand correctly, you are using iWeb to create a blog, then using the "Publish to Folder..." command, then uploading it to Godaddy via their Control Panel.
    If so, after you Publish to folder, then open the folder and only FTP the blog folder.
    I also suggest using a FTP client such as Fetch which is much faster then Godaddy's control panel.
    This is just another example of why I pay about $8 per month for .Mac

  • How to update Blog picture at right column?

    Dear all,
    It maybe a silly question but I fail to figure out for days...  I created a blog using the default template.  At the right column there are "Blog tools" and a "camera" picture with description "No, this isn't actually my
    picture. I just haven't gotten around ....."
    How can I update this picture?
    Mark

    its using the CEWP. once you select the webpart, click on edit source then change the image blogabout96.png to your image.
    <img class="ms-blog-aboutImage" alt="About this blog" src="/_layouts/15/images/blogabout96.png?rev=33"/>
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Update blog from other computers?

    I think I already know the answer here but...
    We've created a blog on iWeb. In the near future, we're doing some traveling and will not have our Mac with us. Is there a way to update this blog via the Internet, or are we stuck using another service/format like blogger?
    Part two - if we do need to use another service for our blog, does anyone have advice on easily integrating it to an iWeb created site?
    Thank you.

    I had the same question, last summer. I found a solution by using www.posterous.com. That is a site where you can publish blogs by sending emails (it also supports pictures). If your mobile phone supports sending emails or MMS, there is nothing more that you should take with you on your trip.
    In order to make your blogs visible on your site, you can use a html snippet, and insert the code of the the website. Than, each blog that you send to www.posterous.com will be visible at your site.
    Njoy your trip!

  • Update record problem PHP MYSQL

    hi all,
    I have a problem with DW 8's update server behaviour. I'm not
    sure if its that or a MYSQL problem:
    I have one page: upload2.php and there is an option for the
    user to change their password.
    But when I enter the user details, and the new password, the
    database does not change at all.
    Where am I going wrong?

    The_FedEx_Guy wrote:
    > Which header information is this? I have never come
    across this.
    It's probably the most common beginner's mistake in PHP after
    forgetting
    such things as semicolons or matching quotes:
    "Remember that header() must be called before any actual
    output is sent,
    either by normal HTML tags, blank lines in a file, or from
    PHP. It is a
    very common error to read code with include(), or require(),
    functions,
    or another file access function, and have spaces or empty
    lines that are
    output before header() is called. The same problem exists
    when using a
    single PHP/HTML file."
    http://uk.php.net/manual/en/function.header.php
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Problems updating blog with Blogger

    I want to make a new post to a blog I maintain with Blogger. First problem is that I can't enter text in the "compose" mode for the post body. I have to use "edit html" mode, which I guess will do in a pinch, but is not optimal.
    Secondly, when I try to attach a photo, the option is grayed out. I have pictures in my camera roll as well as in photo albums, but Safari won't give me access to them to upload.
    Any ideas how I can do this?

    Apple's servers are busy. Check again in a few hours or tomorrow.
    (89470)

Maybe you are looking for