WordPress.org

Ready to get started?Download WordPress

Forums

Gray - Base Plate
[resolved] syntax error (6 posts)

  1. corizzo
    Member
    Posted 9 months ago #

    activated this theme and this is what i got: Parse error: syntax error, unexpected T_FUNCTION in /home/apcoorep/peroocpa.com/wp-content/themes/gray-base-plate/functions.php on line 106

  2. Tara
    Member
    Posted 9 months ago #

    Parse errors:

    Syntax Error:

    A syntax error means that you have made a mistake while creating your PHP structure. You could, for example, be;
    ■ Missing a ; at the end of an individual line.
    ■ Using curly quotation marks.
    ■ Missing a curly bracket.

    When this error appears it will tell you which file the error appears in (functions.php for example) and approximately which line (it may not always be the exact line so be sure to check just before and just after) in the code.

    Unexpected:

    If you are receiving an error which says 'parse error: unexpected' this usually means that you have forgotten to include a character. The most common are:
    ■ Unexpected '=' : you have forgotten to include the $ when referencing a variable
    ■ Unexpected ')' : you have forgotten to include the opening bracket (
    ■ Unexpected '(' : you have forgotten to include the closing bracket )
    ■ Unepxpected T_STRING: you have forgotten a quotation mark or a semi-colon at the end of the previous line
    ■ Unexpected T_ELSE: you have an else statement with no opening if statement

  3. Michael Pollind
    Member
    Theme Author

    Posted 9 months ago #

    whats your version of php?

  4. Michael Pollind
    Member
    Theme Author

    Posted 8 months ago #

    the last build of this theme resolves the embed function that isn't supported in older versions of php.

  5. simiocel
    Member
    Posted 8 months ago #

    can anyone please help me with this code my business depends on it
    It look like this:
    $control->add_tab( builtins', Built-ins',funtion){

    I've tried three different ways of fixing it and it does not want to work
    Please help
    I would really appreciate it.
    Thank you

  6. Michael Pollind
    Member
    Theme Author

    Posted 8 months ago #

    It's because your version of php doesn't support embedded functions.
    I already resolved the issue in my last build.

    functions.php
    https://github.com/pollend/Gray--Wordpress-Theme/blob/master/functions.php

    latest-build:
    http://wordpress.org/themes/download/gray-base-plate.2.3.6.zip

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.