Support Forums
ATutor Bug Reports
we have parse error:(
You must be signed-in to post.
| Author | Subject | |
|---|---|---|
| Page: 1 | ||
| tornado | Subject: we have parse error:( | |
| Things to describe: Operating system ATutor is installed on - FreeBSD 6 ATutor version - 1.6.3 Patch #s applied - ATutor theme name - Atutor PHP version - 4 MySQL version - 4 Webserver & version - Apache 1.3 Copies of error messages - Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/[dir]/data/www/[url_dir]/mods/_standard/social/lib/classes/Application.class.php on line 144 Changes to default settings - russian lang Web browser being used - at all ...and anything else relevant - Atutor is the best edu-system for our targets, but we have this fatal problem. How we can to solve it? Please, we need help. Thankful in advance for the answer! Posted: 2009-09-20 04:38:15 | ||
| tornado | Subject: Re: we have parse error:( | |
| i didn't posted error-line code... sorry... so private function fetch_gadget_metadata($app_url){ $request = json_encode(array('context' => array('country' => 'US', 'language' => 'en', 'view' => 'default','container' => 'atutor'),'gadgets' => array(array('url' => $app_url, 'moduleId' => '1')))); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, AT_SHINDIG_URL.'/gadgets/metadata'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_AUTOREFERER, 1); curl_setopt($ch, CURLOPT_MAXREDIRS, 10); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 4); curl_setopt($ch, CURLOPT_TIMEOUT, 20); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, 'request=' . urlencode($request)); $content = @curl_exec($ch); return json_decode($content); } private function fetch_gadget_metadata($app_url){ --- it's line 144 Posted: 2009-09-20 05:47:44 | ||
greg![]() | Subject: Re: we have parse error:( | |
| It sounds like your PHP installtion is not compiled with CURL. www.atutor.ca/atutor/docs/requirements.php Posted: 2009-09-20 08:40:52 | ||
| tornado | Subject: Re: we have parse error:( | |
| tnx for answer, so if u r talking about CURL how as php extension - its installed & working at our web-soft (curl.so)... or not it about? please tall me where i can write about install CURL... this theme about... PS sorry for my bad english... Posted: 2009-09-20 09:34:27 | ||
greg![]() | Subject: Re: we have parse error:( | |
| Recompile php, adding --with-curl=/usr/bin/curl You may need to adjust the path to curl if it is in a different location on your system Posted: 2009-09-20 09:59:27 | ||
| tornado | Subject: Re: we have parse error:( | |
| ok..thank u very much! i'll try... Posted: 2009-09-20 10:29:14 | ||
| Page: 1 | ||
You must be signed-in to post.


