Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

weird PHP error

Options
  • 14-03-2012 8:43am
    #1
    Registered Users Posts: 8,070 ✭✭✭


    Parse error: syntax error, unexpected $end in e:\domains\cgj.net\wwwroot\test\wp-admin\includes\media.php on line 354
    PHP Warning: Unknown(): Unable to load dynamic library 'C:\PHP5\ext\php_mbstring.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: Unknown(): Unable to load dynamic library 'C:\PHP5\ext\php_curl.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: Unknown(): Unable to load dynamic library 'C:\PHP5\ext\php_gd2.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: Unknown(): Unable to load dynamic library 'C:\PHP5\ext\php_imap.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: Unknown(): Unable to load dynamic library 'C:\PHP5\ext\php_mcrypt.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: Unknown(): Unable to load dynamic library 'C:\PHP5\ext\php_mssql.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: Unknown(): Unable to load dynamic library 'C:\PHP5\ext\php_mysql.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: Unknown(): Unable to load dynamic library 'C:\PHP5\ext\php_openssl.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: Unknown(): Unable to load dynamic library 'C:\PHP5\ext\php_mysqli.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: Unknown(): Unable to load dynamic library 'C:\PHP5\ext\php_pdo.dll' - The specified module could not be found. in Unknown on line 0 PHP Parse error: syntax error, unexpected $end in e:\domains\cgj.net\wwwroot\test\wp-admin\includes\media.php on line 354
    


    Trying to install wordpress for a friend, some hosting in Asia.
    Getting this wierd error, why is it pointing to files locally?
    does this mean that PHP was not installed correctly on the hosting?

    phpinfo(); renders fine, didnt check for extension libraries though


Comments

  • Closed Accounts Posts: 326 ✭✭whitesands


    I'm no expert but it looks like the site was set up to run locally on a machine.

    You need to setup variables for hostname as 127.0.0.1 or the current directory instead of your local machine, ie c:\ should never be used in a site as it will only work locally. It's an easy enough fix if you know what your looking at.

    EDIT: Maybe not 127.0.0.1, just don't hardcode directory names & locations into a site that will be setup elsewhere, it's most probably a Linux server it's being hosted on so a site looking for files at c:\ isn't going to have a clue what your doing.


  • Registered Users Posts: 9,579 ✭✭✭Webmonkey


    The server you are hosting on is a windows server and that's the local path of the PHP file on their servers.

    I'd contact the web host in regards to the failed loading of the PHP extension. You may also have forgotten a { or bad quotes on your script that could cause the error your see.


Advertisement