Help - TimThumb + Wordpress 3.0 Multisite issue persists

resolved (17 posts) (3 voices)

  1. Strategerizer
    Member

    I have version 1.2 of Awake and image resizing is not working. I also have your inFocus theme and if I switch my site to it, then image resizing works.

    So I assume the issue is with the Awake theme.

    Please advise,

    Thanks!

    Posted 1 year ago #
  2. Strategerizer
    Member

    I found these resources that may be relevant:
    http://www.binarymoon.co.uk/2009/10/timthumb-wordpress-mu/
    http://code.google.com/p/timthumb/issues/detail?id=8#c16 (I am on HostGator server)

    In any case... there must be something in Awake that makes it work differently than inFocus and, unfortunately, failing.

    Posted 1 year ago #
  3. Elliott
    Support

    Hello Strategerizer,

    I notified Webtreats about this and we will be taking a closer look soon.

    Thanks for the links.

    Posted 1 year ago #
  4. Elliott
    Support

    Strategerizer,

    Could you open up your wp-config.php and check if you have either of these two lines..

    define('WP_ALLOW_MULTISITE', true);
    define('MULTISITE', true );

    If you do not have both of these lines go ahead and make sure both of them are in wp-config.php, specifically the 'define('WP_ALLOW_MULTISITE', true);' statement.

    After making the change see if the image resize works.

    I know in the wordpress codex it tells you to delete the WP_ALLOW_MULTISITE line when you are finished but I just wanted to confirm something real quick.

    Posted 1 year ago #
  5. Strategerizer
    Member

    So I followed the suggestions provided in the second link above and I asked HostGator to lower security for the three processes: 340151 AND 340153 AND 1234234. I kept cache folder at 755.

    Interestingly enough, now TimThumb works correctly on Awake! So having HostGator adjust security settings did fix the issue. Hope this helps other people too.

    Not sure why though Awake was behaving differently than inFocus. Both now work as they should. Before the HosatGator adjustment Awake did not work and inFocus worked partially (it would display the image but it scaled it *non-proportionally* to get it to fit in the predetermind area.)

    Posted 1 year ago #
  6. Elliott
    Support

    Hey Strategerizer,

    Glad you got it fixed. This will be a valuable resource for people using HostGator.

    Thanks!

    Posted 1 year ago #
  7. Strategerizer
    Member

    Elliott, I did check my wp-config.php and see one of the two lines:

    define( 'MULTISITE', true );

    In light of the additional information, do you still want me to add the other line and check anything out?

    Posted 1 year ago #
  8. Elliott
    Support

    Strategerizer, as long as it is working then we know it was not a bug on our end. You don't need to add the other line.

    Thanks again

    Posted 1 year ago #
  9. Strategerizer
    Member

    Cool, thanks.

    Posted 1 year ago #
  10. Strategerizer
    Member

    One step forward, two steps back...

    Image resizing is again not working on my site. Not clear what has changed since it was working. I called HostGator to ensure the rules/prcosses were still white listed. The thing is taht I cannot determine exactly when it stopped working since, once it works, the images are being resized on the server. Then, even if the script breaks, I think the resized image is still avaialble so it may look like the script is working but it is not. Only when adding a new image it will be apparent that it is not working.

    Webtreats, can you confirm that indeed Awake resizing script is supposed to work in a WordPress MultiSite environment? (the post at http://www.binarymoon.co.uk/2009/10/timthumb-wordpress-mu/ implies there are some known issues with the TimThumb script...)

    Thanks!

    Posted 1 year ago #
  11. Elliott
    Support

    Hello Strategerizer,

    Yes Awake has MU support. If it is possible could you PM me WP-login and FTP logins so I can take a closer look.

    Also, go ahead and add that other line we were talking about..

    define('WP_ALLOW_MULTISITE', true);

    In your wp-config.php file. Awake checks for this constant and if it is set then it grabs your images from the blog.dir directory.

    Posted 1 year ago #
  12. Strategerizer
    Member

    I added that line to wp-config and still issue.

    Posted 1 year ago #
  13. Strategerizer
    Member

    I got an answer back from HostGator's escalated support:

    =============QUOTE===============

    The issue it appears is related to WordPress MU and timthumb -- when the image variable is passed to thumb.php it's listed as being on http://www.komotion.com instead of the subdomain for that WordPress install, and as such thumb.php identifies it as being a "remote host" which isn't allowed.

    I found a pretty thorough write-up about this exact issue which explains how to modify your theme to work properly:

    http://www.binarymoon.co.uk/2009/10/timthumb-wordpress-mu/

    Unfortunately modifying WordPress themes is a little outside our scope of support, but from what I can tell it looks like this should get you on the right path.

    For instance, the image on test4 that never loads is:
    http://test4.komotion.com/wp-content/themes/awake/lib/scripts/thumb.php?src=http://www.komotion.com/images/featured-980-1.jpg&w=900&h=350&zc=1&q=100
    (If you view that in the web browser it'll report the error that the "remote host" isn't allowed.)

    However, if you view:
    http://test4.komotion.com/wp-content/themes/awake/lib/scripts/thumb.php?src=http://test4.komotion.com/images/featured-980-1.jpg&w=900&h=350&zc=1&q=100
    This displays correctly, because it's no longer treating it as a remote host.

    Rewriting the URL that's generated should solve this issue for all your other subdomains that use the same theme as well.

    =============END QUOTE===============

    Posted 1 year ago #
  14. Webtreats
    Support

    Hi Strategerizer,

    Yes, we can confirm that Awake has the necessary timthumb modifications to work with WordPress MultiSite.

    Something else is happening. Where exactly are you running up against this issue?

    Posted 1 year ago #
  15. Strategerizer
    Member

    Webtreats, you can see the issue on the main page of my Komotion website, residing in (/public_html/):
    http://komotion.com/

    The page I created to test image display in Awake with Highslide (detailing some other issues I am running into):
    http://komotion.com/test-images/

    The main page of a subsite of the komotion.com WP3 MU installation:
    http://test4.komotion.com/

    Also on a WP 2.9 (non-MU) installation in my same cPanel user account (/public_html/mysite/)
    http://mysite.komotion.com/

    In some instances it fails by showing the spinning loader animation, in other instances it fails to show the image but the slider goes through the slides and shows appropriate backgrounds.

    I provided in Private Message to Elliott and Uniq all login information. Will send it your way too.

    Thanks.

    Posted 1 year ago #
  16. Strategerizer
    Member

    Hi, I have not had any further feedback on this issue. I will not be albe to launch the website without the resizer script working.

    PLEASE help resolve this issue.

    Thanks.

    Posted 1 year ago #
  17. Webtreats
    Support

    Hi Strategerizer,

    We've resolved the TimThumb issue you were running into on your site. You can see TimThumb working here:

    http://komotion.com/
    http://komotion.com/test-images/
    http://test4.komotion.com/

    In regards to this link:

    http://mysite.komotion.com/

    TimThumb is not working on the first slider image because its being called from an external host:

    http://komotion.com/images/featured-980-1.jpg

    In order for TimbThumb to work the image path needs to be the following:

    http://mysite.komotion.com/images/featured-980-1.jpg

    In regards to your NextGen gallery formating issue wrapping the NextGen gallery shortcode with Awake's [raw] shortcode will resolve this, for instance:

    [raw] [nggallery id=1] [/raw]

    We've also removed the "galleria-counter"

    Posted 1 year ago #
  18. Strategerizer
    Member

    Webtreats - THANK YOU! You cannot imagine how grateful I am that you not only have resolve the resizing issue but addressed ALL the various issues I was having. I see also the HighslideJS is working flawlessly right now - amazing!

    Would you mind clarifying how you were able to fix the TimThumb and Highslide issues? - in case it reappears, like if I install a future update to the Awake theme.

    THANKS!

    Posted 1 year ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme