Title: [Plugin: Onswipe] fatal error
Last modified: August 19, 2016

---

# [Plugin: Onswipe] fatal error

 *  [stephenjames716](https://wordpress.org/support/users/stephenjames716/)
 * (@stephenjames716)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-onswipe-fatal-error-1/)
 * Hi,
 * Thanks for looking at my post. I just tried to install onswipe and got the following
   error:
 * Plugin could not be activated because it triggered a fatal error.
    Fatal error:
   Call to undefined function wp_basename() in /home6/stephfj0/public_html/wp-content/
   plugins/onswipe/onswipe.php on line 35
 * I took a look at known plugins that cause errors and I don’t have any of those
   installed. I also tried deactivating my active plugins and activating onswipe
   again but still received the same error.
 * Any suggestions would be appreciated.
 * Thanks,
    Steve

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

 *  [Glorfind3l](https://wordpress.org/support/users/glorfind3l/)
 * (@glorfind3l)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-onswipe-fatal-error-1/#post-1996011)
 * You have to upgrade to wordpress 3.1, it’s not compatible with 3.01 or lower 
   version (where there’s no wp_basename function)
 * 🙂
 *  Thread Starter [stephenjames716](https://wordpress.org/support/users/stephenjames716/)
 * (@stephenjames716)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-onswipe-fatal-error-1/#post-1996012)
 * great, thank you.
 *  [emilsr](https://wordpress.org/support/users/emilsr/)
 * (@emilsr)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-onswipe-fatal-error-1/#post-1996225)
 * Hi, I’ve upgraded to 3.1 and still get this error. Any suggestions?
 * thanx in advance!
 *  [emilsr](https://wordpress.org/support/users/emilsr/)
 * (@emilsr)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-onswipe-fatal-error-1/#post-1996226)
 * sorry, my error reads:
 * Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION
   or T_VAR or ‘}’ in /home/grupol2/public_html/wp-content/plugins/onswipe/framework/
   api/restapi.php on line 4
 * tnx
 *  [jcukier](https://wordpress.org/support/users/jcukier/)
 * (@jcukier)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-onswipe-fatal-error-1/#post-1996305)
 * I had the same error as emilsr and fixed it when I used a PHP5 database instead
   of PHP4. this can’t be changed within wordpress, but with your internet host.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-onswipe-fatal-error-1/#post-1996306)
 * Do you mean that you upgraded PHP? Or upgraded MySQL? PHP doesn’t have databases.
 *  [buddhistsean](https://wordpress.org/support/users/buddhistsean/)
 * (@buddhistsean)
 * [15 years ago](https://wordpress.org/support/topic/plugin-onswipe-fatal-error-1/#post-1996321)
 * Has anyone found a resolution to this? I have MySQL 5 and WordPress.org version
   3.1.3 (the latest version), and I am getting the same error.
 *  [daniellestern](https://wordpress.org/support/users/daniellestern/)
 * (@daniellestern)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-onswipe-fatal-error-1/#post-1996332)
 * It’s likely the theme. I switched to a different theme and Onswipe activated 
   fine. When I switched back to the old theme it broke my site.

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

The topic ‘[Plugin: Onswipe] fatal error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/onswipe.svg)
 * [Onswipe](https://wordpress.org/plugins/onswipe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/onswipe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/onswipe/)
 * [Active Topics](https://wordpress.org/support/plugin/onswipe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/onswipe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/onswipe/reviews/)

 * 8 replies
 * 7 participants
 * Last reply from: [daniellestern](https://wordpress.org/support/users/daniellestern/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-onswipe-fatal-error-1/#post-1996332)
 * Status: not resolved