• Hello

    I got this error

    Fatal error: Call-time pass-by-reference has been removed in /home/kandils/public_html/wp-content/themes/Publisher/monetize/add_post/functions_add.php on line 509

    and this is the code of this line 509

    $ou .= ‘<ul class=”category_list_sub”>’ . __show_category_form($cat, $selected_cats, $taxno_name,&$chkcounter) . ”;

    How can I solve this ?

Viewing 1 replies (of 1 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    Where did you download your theme from?

    With PHP 5.4 (which your host is using now) the & ampersand symbol is not valid in a function call anymore and causes a fatal error. It has been deprecated since PHP 5.0 and until PHP 5.3 it would only generate a warning. In 5.4 it causes a fatal error. You’ll need to contact the theme developer and tell him/her to make the theme PHP 5.4 compatible.

    For now the best way to solve this would be by creating a child theme and copying over the /monetize/add_post/functions_add.php folders and file to your child theme.

    And change this (in your child theme’s functions_add.php):

    &$chkcounter

    to this

    $chkcounter

    Unfortunately child themes and subfolders don’t always work the way it should. We need to know where you downloaded the theme from.

Viewing 1 replies (of 1 total)
  • The topic ‘Error Message !’ is closed to new replies.