Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WPReady

    (@wpready)

    Hi piechcio,
    thanks for your feedback.
    I guess the problem goes like this: NextScripts: SNAP uses Ajax . When that happen, Nextcellent avoid loading some classes, which is causing also the problem. One of the classes omitted is nggRewrite causing the error you’re mentioning.

    The solution should be including the class without taking care is an Ajax operation.

    If you want a fast & dirty solution, you’ll need to edit the plugin’s code.
    I have to warn you: this is simple, but it could be risky.
    If the change works for you, a fix will be included on next version ,1.9.26

    Steps:

    1-Edit the file nggallery.php (in the plugin’s root)
    2-look for the following code (about line 370)
    You’ll find something like following code ((I’ve deleted some comments to simplify):

    // We didn’t need all stuff during a AJAX operation
    if ( defined(‘DOING_AJAX’) )
    require_once (dirname (__FILE__) . ‘/admin/ajax.php’);
    else {
    require_once (dirname (__FILE__) . ‘/lib/meta.php’);
    require_once (dirname (__FILE__) . ‘/lib/media-rss.php’);
    require_once (dirname (__FILE__) . ‘/lib/rewrite.php’);
    include_once (dirname (__FILE__) . ‘/admin/tinymce/tinymce.php’);
    // Load backend libraries
    if ( is_admin() ) {
    require_once (dirname (__FILE__) . ‘/admin/admin.php’);
    require_once (dirname (__FILE__) . ‘/admin/media-upload.php’);
    $this->nggAdminPanel = new nggAdminPanel();
    }
    }

    3-Move the line including the rewrite.php file before the ‘if’ and comment sentence. The final code will be like this:

    require_once (dirname (__FILE__) . ‘/lib/rewrite.php’);
    // We didn’t need all stuff during a AJAX operation
    if ( defined(‘DOING_AJAX’) )
    require_once (dirname (__FILE__) . ‘/admin/ajax.php’);
    else {
    require_once (dirname (__FILE__) . ‘/lib/meta.php’);
    require_once (dirname (__FILE__) . ‘/lib/media-rss.php’);
    include_once (dirname (__FILE__) . ‘/admin/tinymce/tinymce.php’);
    // Load backend libraries
    if ( is_admin() ) {
    require_once (dirname (__FILE__) . ‘/admin/admin.php’);
    require_once (dirname (__FILE__) . ‘/admin/media-upload.php’);
    $this->nggAdminPanel = new nggAdminPanel();
    }
    }

    If you decide to apply this ‘fix’ tell me if it worked. Thanks

    Thread Starter piechcio

    (@piechcio)

    Now i have got error:

    Array ( [Warning] => [Error] => (#100) name parameter cannot be longer than 255 characters. )

    Plugin Author WPReady

    (@wpready)

    Ok, but where is that error? Do you have some other info related?

    Thread Starter piechcio

    (@piechcio)

    OK, sorry, now I can post my news to facebook, but whithout gallery.
    On facebook is only text.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Facebook autoposter and gallery’ is closed to new replies.