• Hi everyone,
    I cannot view my website or enter my WordPress dashboard anymore.
    Every day I receive an e-mail about an error but the links in the e-mail are not working.
    It would be great if someone can tell me what I can do to fix this.
    Thanks a lot!
    Greetings, Jenneke

    ————— here some specific information about the error ———————

    WordPress versie 6.7.5
    Actief thema: One Page Express (versie 1.3.58)
    Huidige plugin:  (versie )
    PHP versie 7.2.34

    Foutdetails
    ===========
    Een fout van het type E_PARSE werd veroorzaakt op regelnummer 2994 van het bestand /home/hartog26/domains/zweersmuziek.nl/public_html/wp-content/themes/one-page-express/inc/functions.php. Fout bericht: syntax error, unexpected ‘)’

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @zweersmuziek,

    Sorry to know that you are experiencing this issue.

    The error appears to be coming from the functions.php file of your theme. I tried installing the free version of the theme on a test website, but I didn’t notice any issues. Did you add any new code in your functions.php file?

    Try reverting the last change made in the functions.php file, that should help resolve the issue.

    If you can share the contents of the functions.php file, we can take a look at the code and help with some insights.

    Best Regards,
    Nebu John

    The issue is trailing comma on line 2993 of file: /home/hartog26/domains/zweersmuziek.nl/public_html/wp-content/themes/one-page-express/inc/functions.php

    old php vesrions don’t have support for trailing commas in function calls.
    Recommended solution: Update php version to 7.3 or higher.

    Fast but not recommended: remove comma from which is at the end of line 2993 of file: /home/hartog26/domains/zweersmuziek.nl/public_html/wp-content/themes/one-page-express/inc/functions.php

    Let me know if it helps,

    Ahmed Khan
    Mellocity

    Thread Starter zweersmuziek

    (@zweersmuziek)

    Thanks for your messages, I need some time to see if I can download this ‘functions.php’ file without entering my dashboard.
    I’ll send this file as quickly as possible, it would be great if you can help me further then
    Thanks

    Thread Starter zweersmuziek

    (@zweersmuziek)

    It’s really hard for me to login to my ftp and find the functions file.
    For now I made a document with more information from web-oke and direct admin.
    But I don’t know how to send this document to you..
    Thanks for thinking along

    Hi @zweersmuziek,

    Have you tried the solutions i proposed?

    Thread Starter zweersmuziek

    (@zweersmuziek)

    Hi @ahmedcheetah ,

    I tried to update the php version via another dashboard then my WordPress dashboard (web-oke.nl). But it blocked because of the error already excisting.
    I cannot adapt the file ‘function.php’ because I cannot log in on my FTP and cannot open my WordPress dashboard…

    Thread Starter zweersmuziek

    (@zweersmuziek)

    Hello @zweersmuziek,

    I hope things are going well for you.

    I tried to update the php version via another dashboard then my WordPress dashboard (web-oke.nl). But it blocked because of the error already excisting. I cannot adapt the file ‘function.php’

    If the Hosting panel > File Manager works, navigate to /home/hartog26/domains/zweersmuziek.nl/public_html/wp-content/. Rename the theme from “one-page-express” to “one-page-express-old” so you can deactivate it and update the PHP version to 8.2 or later. You can check the list of supported PHP versions here: https://www.php.net/supported-versions.php.

    I’ve installed the one-page-express theme on my test site with PHP 7.4. I couldn’t test PHP 7.2 to confirm this, but I couldn’t replicate any syntax errors at that location. Here is the screenshot for reference: https://monosnap.ai/file/1subWWkF1pHL1tKlppOSIL8x6mT6NA.

    It seems more likely that a PHP version is causing the issue, especially since PHP 7.2 is quite outdated and no longer receives security support. This could result in an error, so it’s worth verifying that as well.

    Please give it a try and share the outcome.


    Kind Regards,
    Imran Khan

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

You must be logged in to reply to this topic.