• When I run php-cgi.exe
    I get an error saying:
    Syntax error, unexpected ‘(‘ in C:\Program Files\PHP\v5.6\php.ini on line 102

    This is what I have on line 102
    define( ‘WP_DEBUG’, true );
    It doesn’t make any difference if I have line 102 commented out or not. The Syntax error is the same on the same line.

    Just in case this has to do with something above line 102, I am including what is around line 102.
    ; All lines above this are commented out
    safe_mode = on
    display_errors = Off
    ; **Turn off for production
    ; Default Value: On
    ; Development Value: On
    ; Production Value: Off
    // Turn debugging on
    define( ‘WP_DEBUG’, true ); Line 102
    // Tell WordPress to log everything to /wp-content/debug.log
    define( ‘WP_DEBUG_LOG’, true );

    Thank you,
    Docfxit

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    That seems to be coming from your PHP 5.6

    You may try uploading php 5.6 again, in case some files are incomplete

    Thread Starter Docfxit

    (@docfxit)

    Two days ago I installed PHP 5.6.

    I just compared the PHP 5.6 zip file to the installed PHP 5.6.

    There are lots of files that are different.

    Should I copy all the files from the PHP 5.6 zip into the installed folder?

    Or how should I re-install PHP 5.6?

    Thanks,

    Docfxit

    Geoffrey Shilling

    (@geoffreyshilling)

    Volunteer Moderator

    I believe the following should be in your wp-config.php instead of php.ini file.

    // Turn debugging on
    define( 'WP_DEBUG', true ); Line 102
    // Tell WordPress to log everything to /wp-content/debug.log
    define( 'WP_DEBUG_LOG', true );
    Thread Starter Docfxit

    (@docfxit)

    After moving it from php.ini to wp-config.php
    When I run php-cgi.exe it doesn’t give me that error any more.

    Thank you very much.

    I am now getting a different error saying:
    Directive ‘safe_mode’ is no longer available in PHP.

    I did have safe-mode in PHP.INI. I have removed it. I stopped the server and restarted it. I’m still getting the same error.

    Thank you,
    Docfxit

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Syntax error, unexpected '(' in php.ini’ is closed to new replies.