• Resolved djmagro

    (@djmagro)


    Hey,

    Somehow at the top of my homepage this error occurs

    Deprecated: Assigning the return value of new by reference is deprecated in /home/content/92/10498692/html/wp-content/themes/flashlight/woocommerce-config/config.php on line 425

    I have tried the usual when getting problems such as deavitivating plugins and changing my theme but nothing has happened.

    Plus and I don’t even have the woocommerce plugin installed on my page, but it is apart of my theme.

    If you know the answer to my problem, could you share it with me in the simplest form as I don’t know a lot about css and coding.

    Thanks

Viewing 15 replies - 1 through 15 (of 21 total)
  • Can we see your site with the default theme with all plugins turned off?

    Thread Starter djmagro

    (@djmagro)

    Of course

    It’s davidmagrophotography.com

    I have turned off all the plugins and changed theme to twenty twelve but when I look using the browser it hasn’t changed.Might be different on your end.

    Thread Starter djmagro

    (@djmagro)

    The front page is still the theme of flashlight but once you click portfolio or another tab it shows the twenty twelve theme. Strange

    Thread Starter djmagro

    (@djmagro)

    Sorry also, the error is at the very top but once the slideshow begins it gets covered up, or if your internet connection is slow you may see the error for much longer because the slideshow hasn’t loaded yet.

    Try adding the below code at the END of your wp-config.php file (last line)

    error_reporting(E_ERROR);

    Also check your wp-config.php file for any unusual additions or deletions.

    Thread Starter djmagro

    (@djmagro)

    I put error_reporting(E_ERROR); on the very last line then received the error below:

    Parse error: syntax error, unexpected $end in /home/content/92/10498692/html/wp-content/themes/flashlight/woocommerce-config/config.php on line 547

    Then I couldn’t access my site at all an had to use filzilla to put the old config.php back on.

    Also just to clarify, is it config.php or wp-config.php? I only have a config.php otherwise

    The changes I asked you to do were supposed to be done to /home/content/92/10498692/html/wp-config.php

    Please undo any other changes to any other files you might’ve done.

    Thread Starter djmagro

    (@djmagro)

    Excellent! I think it is safe to go.

    I have put my original theme back on and plugin ins.

    I did put it coding in the wrong place, and it now doesn’t show errors at the top of the page.

    Thanks for your help.

    Sounds great!

    Glad I could be of help.

    Cheers!

    Thread Starter djmagro

    (@djmagro)

    Hey actually I am getting another error now which stops me from viewing my site when putting on all the plugins.

    Its now a blank page which read

    Deprecated: Assigning the return value of new by reference is deprecated in /home/content/92/10498692/html/wp-content/themes/flashlight/woocommerce-config/config.php on line 425

    I thought it was fixed ??

    Thread Starter djmagro

    (@djmagro)

    Also when I go on a different computer, the error is still there. Hmmmm

    Looks like a plugin is overriding the error_reporting.

    Can you post the contents of /home/content/92/10498692/html/wp-content/themes/flashlight/woocommerce-config/config.php to pastebin?

    Thread Starter djmagro

    (@djmagro)

    Here it is mate,

    https://pastebin.com/X7Z8W4Rt

    Thanks

    I guess you got me /home/content/92/10498692/html/wp-config.php, I need /home/content/92/10498692/html/wp-content/themes/flashlight/woocommerce-config/config.php

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Deprecated: Assigning the return value of new by reference is deprecated in’ is closed to new replies.