• Hello everybody,
    while updating my blog I got the following error code
    Parse error: syntax error, unexpected T_FUNCTION in /kunden/427475_26474/webseiten/wordpress/wp-content/plugins/wp-maintenance-mode/includes/classes/wp-maintenance-mode.php on line 918
    … and since then don’t have any access to the site.
    I am not sure if this is the correct forum here, but it would be great if anybody could help …
    All the best from (currently) Israel,
    Michael

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi Michael,

    Do you know what version of PHP you are running? I’m guessing the problem is with PHP version.

    You may be able to just re name the directory
    /kunden/427475_26474/webseiten/wordpress/wp-content/plugins/wp-maintenance-mod
    to
    /kunden/427475_26474/webseiten/wordpress/wp-content/plugins/wp-maintenance-mod.old

    or anything really, so WordPress cannot find the plugin and therefore the error won’t persist, but that will only work if you do not need the wp-maintenance-mode plugin anymore.

    Best of luck,
    Jamison

    Actually, I checked, your PHP is running version 5.2

    The plugin says it requires PHP 5.6 or newer.

    So updating PHP I think is your best bet, and then if that can not be done, using FTP or any alternative to manipulating files, and renaming the specific plugin’s directory.

    Let me know if you need more help with either.

    Best,

    Jamison

    Thread Starter 4-wheel-nomads

    (@4-wheel-nomads)

    Hi Jamison,
    thanks for your reply … The only thing is that I cannot access the page to enter anything as what I see is only the error code. Do you have any idea on how to access the admin area of the blog?
    Best, Michael

    Hey Michael,

    FTP is your best option. Once you access FTP, you can rename the folder of the plugin as I said, then your website will more than likely work, and you will be able to enter the backend.

    If you do not know your FTP credentials or have FTP access, then you might want to contact your host.

    If you have a cPanel, then you can always just use File Manager instead of FTP, which will give you a windows explorer kinda interface to work with.

    I can send you guides on how to FTP but you will still need to know credentials which I can’t give. Your best option might be contacting the host provider, if you call or e-mail them, they will probably verify your account and would be more than happy to modify a file for you (Probably the easiest request they will get all day so they should be nice about it).

    Let me know if you need more info,

    Jamison

    • This reply was modified 7 years, 2 months ago by jamisonb.
    Thread Starter 4-wheel-nomads

    (@4-wheel-nomads)

    Hi Jamison,
    I am not really into the subject, but as I do have access to the customer’s area on my host’s site, it might help if you tell me how to FTP …
    All the best, Michael

    What I do have are the following details:
    FTP host
    SSH/SFTP-Key Fingerprints
    Username

    Sure, I can give you some info, but it depends on the setup on the server, so it’s again something your web host could answer better for you.

    You will first want an FTP client program, Filezilla is popular, cyberduck is also popular.

    Once you download and install it is a pretty basic program, it will ask for host, username, password, and port.

    If it’s filezilla, then you can go to file >> Add Site and since you have an ssh/sftp key, and not a password, change protocol to sftp, try supplying the username, the host, and I would go with port 22, and select your keyfile

    https://blog.runcloud.io/2018/02/10/filezilla-sftp.html

    that site goes over the process a bit.

    Cyberduck is more for Mac, which I, unfortunately, do not use, but it works the same way, just a different interface,

    • This reply was modified 7 years, 2 months ago by jamisonb.
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘error code Parse error: syntax error, unexpected T_FUNCTION …’ is closed to new replies.