• kmp109

    (@kmp109)


    I have the SmugMug for WordPress plugin installed and noticed my entire site wouldn’t load at all when the SmugMug API couldn’t be accessed due to overloading. I was able to make a fix so that my site at least loads, though the SmugMug API warnings still show at the top. I couldn’t finish this hack/fix because SmugMug came back up while I working so the problem went away.

    File to edit:
    /smugmug-for-wordpress/classes/models/wordpress/activation.php

    Line 47 was:

    $service_url = $this->getServiceUrl();

    Change 47 to:

    $service_url = '';
    $service_url = $this->getServiceUrl();

    Line 86 was:

    $this->wp_galleries->itemTable( $galleries );

    Change 86 to:

    $this->wp_galleries->itemTable( $galleries = array() );

    Line 165 was:

    public function setDefault() {

    Change 165 to:

    public function setDefault($service_url = '') {
        if( $service_url == '' ) return;

    That’s as far as I got before SmugMug came back up and I couldn’t replicate the problem any more. But I did have my site up (sort of). It was just posting a few lines of SmugMug api read-only error 99 codes.

    Hope this helps somebody.

Viewing 1 replies (of 1 total)
  • Did you make any further progress on this? The API seems to be down again and I’d like to alter the script to say something like “Photo Server Temporarily Down”

Viewing 1 replies (of 1 total)
  • The topic ‘Hack for SmugMug for WordPress plugin crashing WP when API down’ is closed to new replies.