WordPress.org

Ready to get started?Download WordPress

Forums

EasyRotator for WordPress - Slider Plugin
Easyrotator in Network Mode (7 posts)

  1. cj_guest
    Member
    Posted 10 months ago #

    I've recently upgraded to multisite. The rotators are working fine within the sites but now I can't add/edit any of the rotators.

    When I go to a page to add/create a rotator, the icon I press gives a dialog box with:

    Use the manager below to create or select an existing rotator to embed in your post:

    message. There is nothing to select below on a page with no rotator in it. If I am on a page with a rotator in it, the widget shown allows 2 options: Preview or Open Manager. Preview works fine and previews the rotator in question, however Open Manager open the same dialog box as above!

    Any ideas? Or is it not compatible with multisite in which case I should just delete it?

    http://wordpress.org/extend/plugins/easyrotator-for-wordpress/

  2. DWUser.com
    Member
    Plugin Author

    Posted 10 months ago #

    Hi @cj_guest,

    Thanks for using EasyRotator for WordPress. By default, multisite setups function with each site having separate rotators. If you'd like all sites to share the same rotators, please see the instructions and code snippet here: http://wordpress.org/support/topic/easy-rotator-and-multisite

    Please let me know if I may provide any additional clarification.

    Sincerely,
    Drew O'Neill

  3. cj_guest
    Member
    Posted 10 months ago #

    The Rotators are sharing/working fine on all sites - not an issue but I cannot get into the app to edit/create any of the rotators it just keeps opening the dialog box:

    "Use the manager below to create or select an existing rotator to embed in your post:"

  4. DWUser.com
    Member
    Plugin Author

    Posted 10 months ago #

    Hi,

    If you also want to be able to edit rotators from the main site (so that all sites share rotators completely), you'll also need to edit the getContentDir() and getContentDirURL() methods in the easyrotator-for-wordpress/engine/main.php file. In the first, update this line (around 1544):

    $uploadDir = $uploadInfo['basedir'];

    Instead, use the complete path. For example:

    $uploadDir = '/var/www/domain.com/httpdocs/wp-content/uploads'; //$uploadInfo['basedir'];

    In the second, update this line (around 1560):

    $uploadURL = $uploadInfo['baseurl'];

    Instead, use the complete URL. For example:

    $uploadURL = 'http://www.domain.com/wp-content/uploads'; //$uploadInfo['baseurl'];

    Sincerely,
    Drew O'Neill

  5. cj_guest
    Member
    Posted 10 months ago #

    Hi

    I tried this and changed each line as instructed. Kept telling me when going to each domain directory doesn't exists - yet it does. Having achieved nothing changed to code in main.php back to what it was, and now I cannot move away from this screen as I keep getting the error message:

    Parse error: syntax error, unexpected T_STRING in /homepages/45/d392056467/htdocs/wp-content/plugins/easyrotator-for-wordpress/engine/main.php on line 1544

    yet the code hasn't changed from the original (below):

    // The upload dir exists; no errors.  Return the path (without creating it; that was done upon activation via above createContentDirIfNeeded() method).
    			$uploadDir = $uploadInfo['basedir'];
    			return ($uploadDir . '/' . EasyRotatorPluginConfig::$contentDirWrapperName . '/' . EasyRotatorPluginConfig::$contentDirName . '/');
    		}
    
    		// If we made it to here, the upload dir doesn't exist or isn't writable.  Need to warn user.  Return fake path that will trigger other errors.
    		return $this->_fakeContentDirPath;
    	}
    
    	private function getContentDirURL()
    	{
    		// Get the upload dir info
    		$uploadInfo = wp_upload_dir();
    		if ($uploadInfo['error'] === false)
    		{
    			// The upload dir exists; no errors.  Return the path (without creating it; that was done upon activation via above createContentDirIfNeeded() method).
    			$uploadURL = $uploadInfo['baseurl'];
    			return ($uploadURL . '/' . EasyRotatorPluginConfig::$contentDirWrapperName . '/' . EasyRotatorPluginConfig::$contentDirName . '/');
    		}

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

  6. cj_guest
    Member
    Posted 10 months ago #

    My whole website is down now with this error message displayed!

    Parse error: syntax error, unexpected T_STRING in /homepages/45/d392056467/htdocs/wp-content/plugins/easyrotator-for-wordpress/engine/main.php on line 1544

  7. DWUser.com
    Member
    Plugin Author

    Posted 10 months ago #

    Hi,

    I'm sorry for the delayed response. This type of error is caused by a syntax error in the code, but based on the code you posted I'm not sure what that is. Can you please open a support ticket and include temporary FTP and WordPress dashboard credentials? I'll then try to identify and correct the issue.

    Sincerely,
    Drew O'Neill

Reply

You must log in to post.

About this Plugin

About this Topic