Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • jameshamlin Friend
    #188125

    Hi

    Sorry if this post appears twice but my first attempt at posting seems to have failed.

    After installing the S3 component, on the edit bucket pop-up in bucket manager I get this message:-
    JPath::clean: $path is not a string

    and in the file browser I get:-
    Catchable fatal error: Method CFSimpleXML::__toString() must return a string value in /…/com_jaamazons3/lib/cloudfusion.2.6/services/s3.class.php on line 1221

    Any assistance appreciated. Best regards

    Thanh Nguyen Viet Friend
    #497244

    Hello jameshamlin,

    Could you please PM me your FTP account and Administrator account for further checking ?

    We need to edit some files for debugging to get it fixed.

    dw123 Friend
    #499218

    Have the same error.

    Seeing success changing core Joomla files however, I would prefer not to do that.
    Suggestions, fixes?
    Thanks in advance.

    ———-
    Just downloaded component and plugin.
    * com_jaamazons3.v2.5.3
    * plg_jaamazons3.v2.5.1

    Error:
    500 – An error has occurred.
    JPath::clean: $path is not a string.

    Location:
    Files browser panel when “Viewing Remote Files”.

    Joomla version:
    2.5.11

    Fix:
    libraries/joomla/filesystem/path.php
    Line #202, commented out the next four lines
    // if (!is_string($path) && !empty($path))
    // {
    // throw new UnexpectedValueException(‘JPath::clean: $path is not a string.’);
    // }

    Thanh Nguyen Viet Friend
    #499233

    Hello,
    @dw123 thanks you for your suggestion
    @jameshamlin : I have re-checked code of Amazon SDK and found cause of issue. For resolving issue, please open the file:

    administrator/components/com_jaamazons3/lib/cloudfusion.2.6/utilities/simplexml.class.php

    then scrolling down to the line 168, replacing the below code snippet:

    [PHP]if ($this->attributes())
    {
    return json_decode(substr($s, 14));
    }[/PHP]

    with

    [PHP]if ($this->attributes())
    {
    $a = json_decode(substr($s, 14));
    if($a && is_string($a)) {
    return $a;
    }
    }[/PHP]

    FYI: the edit bucket form now displays incorrect region under select region bucket, to resolve this issue please open the file

    administrator/components/com_jaamazons3/views/bucket/view.html.php

    Search for the code snippet:

    [PHP]if($result->isOK()) {
    $region = (string) $result->body;
    }[/PHP]

    and replace it with:

    [PHP]if($result->isOK()) {
    $region = (string) $result->body;
    if(!empty($region)) {
    $region = ‘s3-‘.$region.’.amazonaws.com’;
    }
    }[/PHP]

    Thanh Nguyen Viet Friend
    #499239

    <em>@dw123 381000 wrote:</em><blockquote>
    Just downloaded component and plugin.
    * com_jaamazons3.v2.5.3
    * plg_jaamazons3.v2.5.1

    Error:
    500 – An error has occurred.
    JPath::clean: $path is not a string.

    Location:
    Files browser panel when “Viewing Remote Files”.

    Joomla version:
    2.5.11</blockquote>

    sorry, I can cann’t reproduce this error in our system.
    Could you please send me PM for administrator acocunt and FTP account of your site for further checking, so we can get it fixed

    dw123 Friend
    #499361

    Will do.

    – Dave

    dw123 Friend
    #499627

    Have PM’ed you and unfortunately our system admin would like to find out if we can resolve another way versus allowing access to FTP and backend admin controls.

    The error only seems to be in the later versions of Joomla.
    i.e. Joomla version: 2.5.11 which is what we are running for some of our sites.

    We also made the changes you’ve suggested and unfortunately that didn’t work.

    Thanks.

    Thanh Nguyen Viet Friend
    #499748

    Hello dw123,

    Above update is applied to fix the bug that jameshamlin reported

    <blockquote>Catchable fatal error: Method CFSimpleXML::__toString() must return a string value in /…/com_jaamazons3/lib/cloudfusion.2.6/services/s3.class.php on line 1221</blockquote>

    For your issue, I need check it directly in your site since I can’t reproduce it in our system. So if possible, you can create a temporary admin account and pm to me so that I can help you further.

    latitude26uk Friend
    #501994

    hello just curious

    was the component updated? i wanted to download the latest version of the amazon s3 but the latest update seems to be from june 5
    and i see your answer here is from july 22nd.

    the current version i have gets as well the problem and i just want to check if i need to edit the code with the code in this post or simply download the component from your site.

    regards

    Thanh Nguyen Viet Friend
    #502007

    Hello latitude26uk,

    We have fixed this issue in dev version of JA Amazon S3, the new version is being tested and we do hope to release it within this week.

    Kindly wait and update.

    Regards

    Thanh Nguyen Viet Friend
    #502267

    Hello,

    The new version (v 2.5.4) of JA Amazon S3 has been released, you can download it here

    dw123 Friend
    #503059

    Great job.

    Installed and working.

    Thanks.

Viewing 12 posts - 1 through 12 (of 12 total)

This topic contains 12 replies, has 4 voices, and was last updated by  dw123 10 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum