Title: Problems with WordPress app
Last modified: September 1, 2016

---

# Problems with WordPress app

 *  Resolved [fpetter](https://wordpress.org/support/users/fpetter/)
 * (@fpetter)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/problems-with-wordpress-app/)
 * Hi,
 * I get same problem as in this issue, but it doesnt solve my problem:
 * [https://wordpress.org/support/topic/using-jetpack-1?replies=5](https://wordpress.org/support/topic/using-jetpack-1?replies=5)
 * Accessing content in app works when I disable the force login. I have added a
   whitelist, and it seems to work, as I can reach the url [http://viplosjen.no/xmlrpc.php](http://viplosjen.no/xmlrpc.php)
   in the browser, which I didnt before adding it to the whitelist. This is from
   functions.php:
 * function my_forcelogin_whitelist( $whitelist ) {
    $whitelist[] = ( ‘[http://www.viplosjen.no/xmlrpc.php&#8217](http://www.viplosjen.no/xmlrpc.php&#8217););
   $whitelist[] = ( ‘[http://viplosjen.no/xmlrpc.php&#8217](http://viplosjen.no/xmlrpc.php&#8217););
   return $whitelist; } add_filter(‘v_forcelogin_whitelist’, ‘my_forcelogin_whitelist’,
   10, 1);
 * I also tried with the site_url but same result. The error from the app is “The
   Jetpack site is inaccessible or returned an error: parse error. not well formed[-
   32700]
 * Any tips?
 * [https://wordpress.org/plugins/wp-force-login/](https://wordpress.org/plugins/wp-force-login/)

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

 *  Plugin Author [Kevin Vess](https://wordpress.org/support/users/kevinvess/)
 * (@kevinvess)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/problems-with-wordpress-app/#post-7497363)
 * Thanks for posting; unfortunately, I’m not sure how to solve this issue – I suggest
   trial and error until you figure it out.
 * A couple suggestions though:
 * **1.** In your whitelist code, if you’re not going to use the `site_url()` function
   to get the site address; then remove the parenthesis too. For example:
 *     ```
       function my_forcelogin_whitelist( $whitelist ) {
         $whitelist[] = 'http://www.viplosjen.no/xmlrpc.php';
         $whitelist[] = 'http://viplosjen.no/xmlrpc.php';
         return $whitelist;
       }
       add_filter('v_forcelogin_whitelist', 'my_forcelogin_whitelist', 10, 1);
       ```
   
 * **2.** I googled your error message and found the following results that might
   be helpful to you figuring out this issue:
 * [https://wordpress.org/support/topic/jetpack-publicize-error-message](https://wordpress.org/support/topic/jetpack-publicize-error-message)
   
   [https://ios.forums.wordpress.org/topic/jetpack-is-return-error](https://ios.forums.wordpress.org/topic/jetpack-is-return-error)
 * **3.** One more option you could try for whitelisting the `xmlrpc.php` page, 
   is to whitelist it regardless of a query string? For example:
 *     ```
       /**
        * Filter Force Login to allow exceptions for specific URLs.
        *
        * @return array An array of URLs. Must be absolute.
        **/
       function my_forcelogin_whitelist( $whitelist ) {
         // Get visited URL without query string
         $url_path = preg_replace('/\?.*/', '', $_SERVER['REQUEST_URI']);
   
         // Whitelist URLs
         if( '/xmlrpc.php' === $url_path ) {
           $whitelist[] = site_url($_SERVER['REQUEST_URI']);
         }
         return $whitelist;
       }
       add_filter('v_forcelogin_whitelist', 'my_forcelogin_whitelist', 10, 1);
       ```
   
 *  Thread Starter [fpetter](https://wordpress.org/support/users/fpetter/)
 * (@fpetter)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/problems-with-wordpress-app/#post-7497456)
 * Hi, and thanks a lot. The last one was did the trick (3). I didnt to anything
   else. Now it seems to work.
 * Regards
    Frode.
 *  Plugin Author [Kevin Vess](https://wordpress.org/support/users/kevinvess/)
 * (@kevinvess)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/problems-with-wordpress-app/#post-7497461)
 * Great! Glad we were able to solve your issue.
 * Be sure to rate and review my plugin to let others know how you like it; enjoy!

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

The topic ‘Problems with WordPress app’ is closed to new replies.

 * ![](https://ps.w.org/wp-force-login/assets/icon.svg?rev=1904031)
 * [Force Login](https://wordpress.org/plugins/wp-force-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-force-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-force-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-force-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-force-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-force-login/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Kevin Vess](https://wordpress.org/support/users/kevinvess/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/problems-with-wordpress-app/#post-7497461)
 * Status: resolved