• Resolved robaa

    (@robaa)


    Hi All,

    I’ve just tried to install this plugin, and although the installation appeared to go through OK, when I tried to activate it I got the following:

    Fatal error: func_get_args(): Can’t be used as a function parameter in […]\wp-content\plugins\autodescription\inc\classes\query.class.php on line 1200

    And now my whole site is down!

    I’m desperate to get my site back up, but I’ve no idea how to do it… Can anyone help? (And please explain it to me as if I’m a two-year-old – I’m not, repeat not, a PHP programmer!)

    Any help HUGELY appreciated – many thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi @robaa,

    To get your site back up, please ask your hosting provider for instructions on how to enter FTP.

    Once you have access to FTP, please go to .../wp-content/plugins/autodescription/ and delete the folder’s contents. From there the site should be accessible once more.

    I’ll investigate the cause of this issue. Cheers!

    Thread Starter robaa

    (@robaa)

    Thanks @cybr

    I have access to my hosting space, so that’s no problem.

    Shall I delete the entire /autodescription folder along with its contents, or only the contents? (Sorry if this is dumb question, just didn’t want to get it wrong.)

    Cheers,
    Robaa

    PS: In case it helps at all, this is the line 1200 that the error refers to:
    return $this->get_query_cache( $key, $value_to_set, array_slice( func_get_args(), 2 ) );

    Plugin Author Sybre Waaijer

    (@cybr)

    Update:

    The cause of this issue lies with PHP 5.2 not supporting func_get_args as a function parameter, but has to be put in a variable first.

    From PHP 5.3 and onward this issue should not exist.

    In other words: The plugin requires PHP 5.3 or later.

    PHP 5.2 support was planned to be dropped in 2.7.1 of The SEO Framework because of bad standards. Alas, it seems to be dropped in The SEO Framework 2.7.0 already ??

    Please contact your hosting provider in order to upgrade your PHP version. PHP 5.2 has not received any updates for over 5 years and therefore holds a security risk whilst using.
    It’s currently best to use PHP 5.6.5 or later. That version is also much, much faster than PHP 5.2; PHP 7 even more so (which is twice as fast as PHP 5.6).

    I hope this clears things up! Best of luck!

    • This reply was modified 8 years, 3 months ago by Sybre Waaijer. Reason: Wrong line investigated. Cause is however the same
    Plugin Author Sybre Waaijer

    (@cybr)

    Hi @robaa,

    Shall I delete the entire /autodescription folder along with its contents, or only the contents? (Sorry if this is dumb question, just didn’t want to get it wrong.)

    You could do either. The cleanest way is of course deleting the folder along with its contents ??

    Cheers!

    Thread Starter robaa

    (@robaa)

    That’s excellent @cybr, many thanks, and thanks especially for such a superfast turnaround on a Friday afternoon (well, it’s Friday afternoon here in Oxford England, I don’t know where you are of course!).

    I’ve successfully deleted the autodescription folder, and hey presto my site is back up as if nothing had ever gone wrong. (Phew!)

    I’ll definitely check with my hosting provider why they are using such an old PHP version, thanks for the heads-up. Assuming they upgrade it in the near enough future, I’ll re-install this.

    Thanks again for your help, and have a good weekend! ??

    Robaa

    Plugin Author Sybre Waaijer

    (@cybr)

    Anytime!

    If you have any more questions, feel free to let me know.
    Enjoy your weekend!

    P.S. I’m your neighbour, from the Netherlands ??

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