Skip to main content

Browscap.ini Error - expecting ']'

Comments

4 comments

  • cPRex Jurassic Moderator
    Hey there! Can you let me know how you installed that tool? I'm not seeing that available through any of the normal PHP extension installer methods on a standard cPanel server, so there may be custom work necessary to get this working.
    0
  • Michael Legg
    I just downloaded and copied the lite_php_browscap.ini file to /opt/cpanel/ea-php74/root/etc/php.d/ Then editied the php.ini file to point to the new file i.e. browscap = /opt/cpanel/ea-php74/root/etc/php.d/lite_php_browscap.ini
    0
  • Michael Legg
    The problem is that the browscap.ini files are full of lines like these ... [Mozilla/5.0 (compatible; MSIE 9.0*; *Windows NT 5.1*Trident/5.0* 360Spider*] Where the string contains a semi-colon which is interpreted as a comment, thus causing the closing ">" to not be found and therefore generating the error - " syntax error, unexpected end of file, expecting '>'" I download the files from
    0
  • cPRex Jurassic Moderator
    You'll also need to ensure the module is initialized. Can you try the details mentioned here?
    0

Please sign in to leave a comment.