[resolved] add_theme_support and add_image_size not working (2 posts)

  1. massayoshi
    Posted 4 years ago #

    I have these lines on my function.php file inside my theme's folder:

    	add_image_size('destaque-thumb', 353, 254, true);
    	add_image_size('news-thumb', 167, 111, true);

    They were working before I moved to a new server. Now it doesn't seem to be working and I see no errors. I turned on error log on my wp-config.php and got this:

    Use of undefined constant destaque-thumb - assumed 'destaque-thumb' in /home/user/wp-content/themes/theme_name/index.php on line 30

    But I don't know where to go from there. Can someone gimme a sign.

    Server is debian 6 and using nginx + php-cgi.

  2. massayoshi
    Posted 4 years ago #

    Turns out, GD library wasn't loaded.

Topic Closed

This topic has been closed to new replies.

About this Topic