Title: phy9pas's Replies | WordPress.org

---

# phy9pas

  [  ](https://wordpress.org/support/users/phy9pas/)

 *   [Profile](https://wordpress.org/support/users/phy9pas/)
 *   [Topics Started](https://wordpress.org/support/users/phy9pas/topics/)
 *   [Replies Created](https://wordpress.org/support/users/phy9pas/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/phy9pas/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/phy9pas/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/phy9pas/engagements/)
 *   [Favorites](https://wordpress.org/support/users/phy9pas/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HyperDB] File wp-db.php is deprecated since version 6.1.0](https://wordpress.org/support/topic/file-wp-db-php-is-deprecated-since-version-6-1-0/)
 *  Thread Starter [phy9pas](https://wordpress.org/support/users/phy9pas/)
 * (@phy9pas)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/file-wp-db-php-is-deprecated-since-version-6-1-0/#post-16498959)
 * I’m sorry, I don’t have anything else to recommend. Hopefully the plugin developers
   will release a new version shortly which fixes this bug.
 * You might need to get a web developer to look at this and see if they can implement
   the solution mentioned above.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HyperDB] File wp-db.php is deprecated since version 6.1.0](https://wordpress.org/support/topic/file-wp-db-php-is-deprecated-since-version-6-1-0/)
 *  Thread Starter [phy9pas](https://wordpress.org/support/users/phy9pas/)
 * (@phy9pas)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/file-wp-db-php-is-deprecated-since-version-6-1-0/#post-16445058)
 * Change it to
 *     ```wp-block-code
       /** Absolute path to the WordPress directory. */
       if ( !defined(‘ABSPATH’) )
       define(‘ABSPATH’, dirname(FILE) . ‘/’);
   
       define(‘WPDB_PATH’, ABSPATH . ‘wp-includes/class-wpdb.php’);
       ```
   
 * Thsi ensures that WPDB_PATH is defined after ABSPATH
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HyperDB] File wp-db.php is deprecated since version 6.1.0](https://wordpress.org/support/topic/file-wp-db-php-is-deprecated-since-version-6-1-0/)
 *  Thread Starter [phy9pas](https://wordpress.org/support/users/phy9pas/)
 * (@phy9pas)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/file-wp-db-php-is-deprecated-since-version-6-1-0/#post-16444864)
 * You really shouldn’t paste your whole wp-config file in – there is confidential
   stuff in there.
 * You need to move this down by a few lines to after where ABSPATH is defined, 
   otherwise it isn’t able to use it in your path to wpdb.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HyperDB] File wp-db.php is deprecated since version 6.1.0](https://wordpress.org/support/topic/file-wp-db-php-is-deprecated-since-version-6-1-0/)
 *  Thread Starter [phy9pas](https://wordpress.org/support/users/phy9pas/)
 * (@phy9pas)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/file-wp-db-php-is-deprecated-since-version-6-1-0/#post-16443197)
 * You should see a line in your wp-config file that says
 *     ```wp-block-code
       /* Add any custom values between this line and the "stop editing" line. */
       ```
   
 * Add it directly after that line, rather than at the end of the file.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HyperDB] File wp-db.php is deprecated since version 6.1.0](https://wordpress.org/support/topic/file-wp-db-php-is-deprecated-since-version-6-1-0/)
 *  Thread Starter [phy9pas](https://wordpress.org/support/users/phy9pas/)
 * (@phy9pas)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/file-wp-db-php-is-deprecated-since-version-6-1-0/#post-16292687)
 * Thanks for your response Lubo – I can confirm I’ve been using this workaround
   for a few weeks now and everything seems to be working as expected.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JWT Authentication for WP REST API] jwt-auth/v1/token is missing the required permission_callback](https://wordpress.org/support/topic/jwt-auth-v1-token-is-missing-the-required-permission_callback-2/)
 *  Thread Starter [phy9pas](https://wordpress.org/support/users/phy9pas/)
 * (@phy9pas)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/jwt-auth-v1-token-is-missing-the-required-permission_callback-2/#post-13388325)
 * Sorry I don’t have anything else to suggest.
    I would probably try using a different
   plugin for authentication. It seems like this one isn’t maintained any more and
   the author doesn’t reply to support requests either.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JWT Authentication for WP REST API] jwt-auth/v1/token is missing the required permission_callback](https://wordpress.org/support/topic/jwt-auth-v1-token-is-missing-the-required-permission_callback-2/)
 *  Thread Starter [phy9pas](https://wordpress.org/support/users/phy9pas/)
 * (@phy9pas)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/jwt-auth-v1-token-is-missing-the-required-permission_callback-2/#post-13387075)
 * Apologies, my suggested fix was not quite right.
    permission_callback should 
   be string containing the function name, rather than a reference to the function
   itself. e.g.
 * `'permission_callback' => "__return_true"`
    or
 * `'permission_callback' => "is_user_logged_in"`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JWT Auth - WordPress JSON Web Token Authentication] jwt-auth/v1/token is missing the required permission_callback](https://wordpress.org/support/topic/jwt-auth-v1-token-is-missing-the-required-permission_callback/)
 *  Thread Starter [phy9pas](https://wordpress.org/support/users/phy9pas/)
 * (@phy9pas)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/jwt-auth-v1-token-is-missing-the-required-permission_callback/#post-13268938)
 * I suggest you update the file
    jwt-authentication-for-wp-rest-api/public/class-
   jwt-auth-public.php
 * to add
 *     ```
       'permission_callback' => __return_true()
       ```
   
 * to the arguments of both calls to
 * `register_rest_route()`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Runkeeper] [Plugin: Runkeeper] iFrame is caped.](https://wordpress.org/support/topic/plugin-runkeeper-iframe-is-caped/)
 *  Plugin Author [phy9pas](https://wordpress.org/support/users/phy9pas/)
 * (@phy9pas)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-runkeeper-iframe-is-caped/#post-2867810)
 * Hello,
 * I actually can’t see the Runkeeper map in the example you posted. I have just
   updated the plugin though, so you may want to try installing the update and try
   again. The new version allows you to tweak the size and offset of the iFrame 
   to solve any alyour issues.
 * Thanks
 * Peter
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Runkeeper] [Plugin: Runkeeper] Add total Workouts and Distance to your widget](https://wordpress.org/support/topic/plugin-runkeeper-add-total-workouts-and-distance-to-your-widget/)
 *  Plugin Author [phy9pas](https://wordpress.org/support/users/phy9pas/)
 * (@phy9pas)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-runkeeper-add-total-workouts-and-distance-to-your-widget/#post-2603110)
 * Hello,
 * Thanks for the comment, however your code was stripped out by the Forum so I 
   can’t quite see what you’ve done.
    If you want to have another go at detailing
   what you’ve done, I’m always interested in hearing suggestions.
 * Peter

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