• Resolved JS Morisset

    (@jsmoriss)


    FYI.

    
    Parse error: syntax error, unexpected ')'
    in /.../wordpress/wp-content/plugins/quickpost/quickpost.php on line 33
    

    js.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aurooba Ahmed

    (@aurooba)

    Hm, that’s odd. Can you tell me what version of WordPress you are using @jsmoriss?

    Thread Starter JS Morisset

    (@jsmoriss)

    @aurooba, you use a comma after $asset_file['version'], which would be fine for an array, but not for function arguments before PHP v7.3:

     28         wp_enqueue_script(
     29                 'createwithrani-quickpost-js',
     30                 plugins_url( $index_js, __FILE__ ),
     31                 $asset_file['dependencies'],
     32                 $asset_file['version'],
     33         );
    

    js.

    Plugin Author Aurooba Ahmed

    (@aurooba)

    Aha! Thanks for letting me know your PHP version! That’s right. I’ll fix that up, I forgot to test earlier versions, that’s my bad. Thanks for the catch @jsmoriss! I’ve just pushed an update that should resolve the issue. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error.’ is closed to new replies.