-
AuthorPosts
-
The landing makers Friend
The landing makers
- Join date:
- January 2017
- Posts:
- 35
- Downloads:
- 6
- Uploads:
- 4
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
February 16, 2017 at 8:43 pm #1011437Hi!
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 FriendThe landing makers
- Join date:
- January 2017
- Posts:
- 35
- Downloads:
- 6
- Uploads:
- 4
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
February 17, 2017 at 1:00 am #1011487Ok, 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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 17, 2017 at 2:44 am #1011513Hi,
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 ModeratorMr.Cat
- Join date:
- December 2016
- Posts:
- 270
- Downloads:
- 24
- Uploads:
- 69
- Thanks:
- 58
- Thanked:
- 53 times in 50 posts
February 17, 2017 at 4:50 am #1011532Hi,
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 FriendThe landing makers
- Join date:
- January 2017
- Posts:
- 35
- Downloads:
- 6
- Uploads:
- 4
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
February 17, 2017 at 4:49 pm #1011703Hi,
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 FriendThe landing makers
- Join date:
- January 2017
- Posts:
- 35
- Downloads:
- 6
- Uploads:
- 4
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
February 17, 2017 at 4:52 pm #1011704This reply has been marked as private.The landing makers FriendThe landing makers
- Join date:
- January 2017
- Posts:
- 35
- Downloads:
- 6
- Uploads:
- 4
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
February 17, 2017 at 5:17 pm #1011710This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 19, 2017 at 2:13 am #1011862Hi @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 ModeratorMr.Cat
- Join date:
- December 2016
- Posts:
- 270
- Downloads:
- 24
- Uploads:
- 69
- Thanks:
- 58
- Thanked:
- 53 times in 50 posts
The landing makers FriendThe landing makers
- Join date:
- January 2017
- Posts:
- 35
- Downloads:
- 6
- Uploads:
- 4
- Thanks:
- 1
- Thanked:
- 1 times in 1 posts
-
AuthorPosts
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.