Closed (duplicate)
Project:
Services
Version:
7.x-3.7
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2014 at 22:12 UTC
Updated:
3 Mar 2014 at 19:47 UTC
Jump to comment: Most recent
Found these syntax errors (throwing them on HostGator site)
In services/servers/rest_server/includes/ServicesRESTServerFactory.inc line 32 this line:
$class_name = static::$class_name;
should be:
$class_name = self::$class_name;
In services/resources/user_resource.inc line 286 and 287 these lines:
'pass1' => isset($account['pass']) ?: '',
'pass2' => isset($account['pass']) ?: '',
should be:
'pass1' => isset($account['pass']) ? $account['pass'] : '',
'pass2' => isset($account['pass']) ? $account['pass'] : '',
Comments
Comment #1
kylebrowning commented#2195489: PHP Parse error: syntax error, unexpected ':' in user_resource.inc on line 286
Comment #2
cdykstra commentedThese fixes worked for me (Drupal 7 on PHP 5.2). Thanks!