ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Parse error


  • 2009-09-29 22:31:32

    Parse error

    If you are asking for help, provide lots of detail so problems can be reproduced.

    Things to describe:
    Operating system ATutor is installed on - Linux
    ATutor version - 1.6.3
    Patch #s applied -
    ATutor theme name - default
    PHP version - 5.0.4
    MySQL version - 4.1.22
    Webserver & version - apache 2
    Copies of error messages - Parse error: parse error, unexpected T_ARRAY, expecting '&' or T_VARIABLE in /test-atutor/mods/_standard/social/lib/BlobCrypter.php on line 40

    This error occurs when trying to access a course.

  • 2009-09-30 11:47:26

    Re: Parse error

    Hi,

    I can't reproduce it. Can you give me more information please. Which page were you on when you experience this error?

  • 2009-09-30 16:34:11

    Re: Parse error

    I created a course as a teacher, the course is successfully created, display it in the courses of the teacher, when I click on the course I get the error page (parse error ...)

    Since ATutor was installed for a test I can give you the url and login information.
    url: http://www.web-libero.it/test-atutor/

    Administrator:
    login name = admin
    password = admin

    Teacher:
    login name = andrea
    Password = andrea

    If you login as a teacher find a course called "aaa", if you try to access the course you have the error page.

  • 2009-10-01 09:40:44

    Re: Parse error

    Thanks for the access. I am not sure why you are getting this error. I will investigate.

    Edited:
    Can you do me a favor and try adding a "?>" at the end of the file?

    Do this for BasicBlobCrypter.php, BasicSecurityToken.php, BlobCrypter.php, Crypto.php.

  • 2009-10-01 11:18:09

    Re: Parse error

    Thank you for the help you're giving me.

    I added "?>" At the end of the file you've indicated, but did not produce any effect.

    ATutor in my pc works fine.
    Windows Vista - Apache Web Server Version 2.2.8 - PHP Script Language Version 5.2.6 - MySQL Database Version 5.0.51b

    I tried to disable the function that gave error.
    There have been other error messages that have involved other functions.

    These:

    file BlobCrypter.php
    row 40: abstract public function wrap(Array $in)

    file BasicBlobCrypter.php
    row 60: public function wrap(Array $in)
    row 72: private function serializeAndTimestamp(Array $in)
    row 122: private function checkTimestamp(Array $out, $maxAge)


    After disabling all functions are managed to enter the course.

    Of course, I do not find the right solution.But I hope you can say something.
    Now I have given everything to the initial situation.
    with the addition of "?>" for BasicBlobCrypter.php, BasicSecurityToken.php, BlobCrypter.php, Crypto.php.

  • 2009-10-01 11:31:02

    Re: Parse error

    Thanks, can you try taking the "Array" out from the () and see if you still get the errors?

    I am wondering if it's a PHP version bug/problem.

  • 2009-10-11 04:14:37

    Re: Parse error

    Unfortunately, even with the changes you suggested those lines of code cause the error anyway.
    I ran the "php debugger": the pages are correct.
    So, I thought it was a problem with version of PHP. Like you said.
    I updated the version of PHP to 5.2.5.
    ATutor now works fine.
    Thank Harris for his kindness and for the help they gave me. :)