Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • The landing makers Friend
    #1011437

    Hi!

    Got almost the same message installing ja_builder_pkg.v1.0.0 RC.zip

    Parse error: syntax error, unexpected ‘[‘ in /home/xxxx/public_html/new/tmp/install_58a60e0bf4061/pkg_ja_builder.script.php on line 87

    The landing makers Friend
    #1011487

    Ok, the code line causing the error is: $ext->element = (string) $child->attributes()[‘id’];

    This is the function involved:

        function getData($route, $adapter) {
            $configuration = JFactory::getConfig();
            $secret = version_compare(JVERSION, '2.5', 'ge') ? $configuration->get('secret') : $configuration->getValue('config.secret');
            $data = new stdClass();
            $data->identifier = md5($secret.$_SERVER['SERVER_ADDR']);
            $data->php = phpversion();
            $data->database_type = $this->getDbType();
            $data->database_version = $this->getDbVersion();
            $data->server = isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : getenv('SERVER_SOFTWARE');
            $data->server_interface = php_sapi_name();
            $data->joomla = JVERSION;
            $data->method = $route;
    
            $extension = array();
            foreach ($adapter->getManifest()->files->children() as $child) {
                $ext = new stdClass();
                $ext->element = (string) $child->attributes()['id'];
                $ext->type = (string) $child->attributes()['type'];
    
                if ($route === 'uninstall') {
                    $cache = $this->getExtension($child);
                    if (!empty($cache)) {
                        $ext->name = $cache->name;
                        $ext->version = $cache->version;
                    } else {
                        $ext->name = 'undifined';
                        $ext->version = 'undifined';
                    }
                } else {
                    $child_xml = $this->getChildXml($child);
                    if (!empty($child_xml)) {
                        $ext->name = (string) $child_xml->name;
                        $ext->version = (string) $child_xml->version;
                    }
                }
                $extension[] = $ext;
            }
    
            $data->extension = $extension;
            return json_encode($data);
        }
    

    The function asks for the info in the manifest which is hosted at update.joomlart.com (http://update.joomlart.com/service/tracking/j31/ja_builder_pkg.xml) as far as i can see in the local pkg_ja_builder.xml

        <updateservers>
        <server type="extension">http://update.joomlart.com/service/tracking/j31/ja_builder_pkg.xml</server>
        </updateservers>

    So, the error seems to be out of my server and I wonder if somebody has succesfully installed the RC version .

    Saguaros Moderator
    #1011513

    Hi,

    Could you guys send us more details about the System Information your sites are running with?

    Or share us the supporting credentials of your site i.e: URL & Admin account via your reply and flag it as PRIVATE reply so we will check for you.

    Regards

    Mr.Cat Moderator
    #1011532

    Hi,

    If your server is using PHP older than 5.4, pls consider to upgrade to higher version of PHP.

    Regards

    Wisdom is not a product of schooling but of the lifelong attempt to acquire it.

    The landing makers Friend
    #1011703

    Hi,

    If your server is using PHP older than 5.4, pls consider to upgrade to higher version of PHP.

    Regards

    My server runs php ver. 5.8.8 I think it is ok.

    I’m sending you the joomla administrator account

    The landing makers Friend
    #1011704
    This reply has been marked as private.
    The landing makers Friend
    #1011710
    This reply has been marked as private.
    Saguaros Moderator
    #1011862

    Hi @gabriel,

    As I can see that your site is running with PHP 5.3: http://prntscr.com/eajqdw

    Joomla recommends to upgrade to PHP 5.6 or 7+: https://docs.joomla.org/Technical_requirements

    Could you give it a try with higher PHP version?

    Regards

    Mr.Cat Moderator
    #1012000

    Hi @gabriel,

    If you don’t want to change php version. just replace this file in jabuilder package installer. And try to install again.

    Check the attachment below.

    Regards


    Wisdom is not a product of schooling but of the lifelong attempt to acquire it.

    The landing makers Friend
    #1012247

    @saguaros: My mistake. You’re right. My PHP version is older. Unfortunatelly I can’t upgrade right now.

    @Mr.Cat Thank you! I replaced the file and it worked. Every thing seems to be ok now.

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

This topic contains 10 replies, has 4 voices, and was last updated by  The landing makers 7 years, 9 months ago.

The topic ‘Parse error: syntax error’ is closed to new replies.