To insert code use <code>...</code>.
Warning errors on Pages with Image Shortcode
  • Hello Striking guys –

    We have an install of Striking on mosaicworship.com. On Pages that use the [image] shortcode, for example, mosaicworship.com/about we get the following errors:

    Warning: Division by zero in /home/mosaic/public_html/wp-content/themes/striking/framework/functions/common.php on line 382

    Warning: imagecreatetruecolor() expects parameter 2 to be long, string given in /home/mosaic/public_html/wp-includes/media.php on line 1025

    Warning: imagecopyresampled() expects parameter 1 to be resource, null given in /home/mosaic/public_html/wp-content/themes/striking/framework/functions/common.php on line 327

    Warning: imagejpeg() expects parameter 1 to be resource, null given in /home/mosaic/public_html/wp-content/themes/striking/framework/functions/common.php on line 356

    Warning: Division by zero in /home/mosaic/public_html/wp-content/themes/striking/framework/functions/common.php on line 382

    Warning: imagecreatetruecolor() expects parameter 2 to be long, string given in /home/mosaic/public_html/wp-includes/media.php on line 1025

    Warning: imagecopyresampled() expects parameter 1 to be resource, null given in /home/mosaic/public_html/wp-content/themes/striking/framework/functions/common.php on line 327

    Warning: imagejpeg() expects parameter 1 to be resource, null given in /home/mosaic/public_html/wp-content/themes/striking/framework/functions/common.php on line 356


    Thanks for any help! Updated to 5.1.8.3 today to see if that was the issue but alas, the warnings are still there.
  • 8 Comments sorted by
  • Hi

    Please Turn debug mode off in the wp-config.php.

    we will look into the problem

    Best regards,
    Striking Team
    Paul
  • Hi

    Warnings have no impact on site performance. And the errors could be generated for any number of reasons. Please post in your website url so i can have a look at what plugins and scripts you are running, and at a later date I will examine the matter.

    As Paul said, turn off your debug. That tool can drive one nuts if one lets it!

    Happy Striking
    Striking Team
    James
  • Hi Caleb,


    You can go to striking->advanced option page to clear cache then have a try.

    Regards,
    KaptinLin
  • Hello,

    I had described a similar problem with the same error message.

    see here: http://kaptinlin.com/support/discussion/5905/error-message-after-deleting-the-plugin-flipping-book-plugin#Item_1

    Problem: Thimbtumb was disabled. I had disabled the plugin "PageFlip Image Gallery" and deleted. Then: the error message appeared.

    Then I Thimbtumb enabled (Striking / Advanced). Result: The error message is gone!

    Thimtumb off again: the error message reappears. Only upon activation of the plugin "Pageflip Image Gallery", the error message disappears.

    Also, "Clear Cache" does not help.

    A very strange problem and I have not found a solution for it.

    WP 3.4.1 and Striking 5.1.8.3

    Regards
    raikit
  • I'm getting the same thing, I have to have Timthumb on as well otherwise I'm getting the above errors.

    Anyone know how to fix this?

    Thanks
    Sol
  • Thanks for the replies everyone.

    Kap – Clearing the Cache didn't seem to help.

    raikit – when I enable TimThumb the error message goes away.

    Kap – can I keep TimThumb enabled so the error message is not there on the site?

    URL of the page(s) in question: mosaicworship.com/about

    ANY AND ALL PAGES on mosaicworship.com that use the Image Shortcode have this error.

    I will leave TimThumb turned off so you can see the error message and will follow your advice on turning it back on or not.

    Thanks guys!
  • Hi Guys

    those are warnings. You can disable to show warning messages via php.ini file as PHP highly recommends.

    http://php.net/manual/en/function.error-reporting.php

    Best regards,
    Striking Team
    Paul
  • Hello, I've been looking to avoid the error message. Now I have written the following code directly into the wp-config.php.

    ini_set ('display_errors', 'off');

    It works. The error message disappears. I could disable Timthumb again.

    Yet all this to me is very mysterious.

    There may be safety concerns when the code is placed in the wp-config.php?

    Regards

    raikit

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion