Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • olivier34 Friend
    #158489

    I have one error when uploading one plugin to JA extensions manager directory:

    – Plugin name : plg_events.zip [ from JomSocial 2.0.4 pro package ]
    – I have the following error when I upload the zipped plugin package to JA extensions manager repository :

    “Fatal error: Call to a member function data() on a non-object in /**myserver**/administrator/components/com_jaextmanager/helpers/uploader/adapters/plugin.php on line 55”

    note : The plugin installation went fine with Joomla instaler. It is listed in the plugin list in JA extensions manager.
    The other plugins from the same JomSocial 2.0.4 pro package can be uploaded without issues. I encounter this error only with this plugin.

    Thanks for your help

    Thanh Nguyen Viet Friend
    #371022

    hello mate,

    Please open this file
    administrator/components/com_jaextmanager/helpers/uploader/uploader.php

    find the function “_isManifest”, then replace the below code snippet

    $root =& $xml->document;
    if (!is_object($root) || ($root->name() != 'install' && $root->name() != 'mosinstall')) {
    // Free up xml parser memory and return null
    unset ($xml);
    return $null;
    }

    with

    $root =& $xml->document;
    if (!is_object($root) || ($root->name() != 'install' && $root->name() != 'mosinstall')) {
    // Free up xml parser memory and return null
    unset ($xml);
    return $null;
    } else {

    $element = & $xml->document->name[0];
    $name = $element ? $element->data() : '';
    if(!$name) {
    unset ($xml);
    return $null;
    }
    }

    Best regads,
    ThanhNV

    plieka Friend
    #379536

    Hi ThanhNV,

    I check my file but it already shows the same “CODE”

    here is what it show from line 716

    $root =& $xml->document;
    if (!is_object($root) || ($root->name() != 'install' && $root->name() != 'mosinstall')) {
    // Free up xml parser memory and return null
    unset ($xml);
    return $null;
    } else {

    $element = & $xml->document->name[0];
    $name = $element ? $element->data() : '';
    if(!$name) {
    unset ($xml);
    return $null;
    }
    }

    This probably means I have the latest version.
    Are there other things I can do?
    Thanks in advance

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

This topic contains 3 replies, has 3 voices, and was last updated by  plieka 13 years, 9 months ago.

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