?
Solved

wordpress - can't activate WP-PageNavi plugin

Posted on 2010-08-24
7
Medium Priority
?
1,883 Views
Last Modified: 2012-05-10
I have a wordpress theme and the developer told me to install pagenavi to have pages on the bottom. for some reason, I can't activate this plugin. I get the following error:

Plugin could not be activated because it triggered a fatal error.

Fatal error: Cannot redeclare _pagenavi_init() (previously declared in /home/MYSITE/public_html/wp-content/themes/NAMEOFTHEME/includes/wp-pagenavi/wp-pagenavi.php:219) in /home/MYSITE/public_html/wp-content/plugins/wp-pagenavi/wp-pagenavi.php on line 60
0
Comment
Question by:wingcat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 14

Expert Comment

by:R-Byter
ID: 33517082
It seems like its a case of collision. You are trying to include wp-pagenavi.php twice.
From your post I can conclude that this is not a plce for wp-navi plugin to be placed at.

/home/MYSITE/public_html/wp-content/themes/NAMEOFTHEME/includes/wp-pagenavi/wp-pagenavi.php:219

Leave it only on second location and see what you get.

Regards
0
 

Author Comment

by:wingcat
ID: 33517135
I tried to delete the files located within the theme and I got an error. I think it's included in the theme already, but how to I activate it?
0
 
LVL 14

Expert Comment

by:R-Byter
ID: 33517213
If Your wp-navi is hardcoded into the theme files (which seems unusual) You shouldnt have to activate the plugin.
What is the error You get when you delet the files that I told You?
0
WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

 

Author Comment

by:wingcat
ID: 33517295
I changed the pagenavi folder's name and tried loading the site. This is what I get.

Warning: require_once(/home/MYSITE/public_html/wp-content/themes/NAMEOFTHEME/includes/wp-pagenavi/wp-pagenavi.php) [function.require-once]: failed to open stream: No such file or directory in /home/MYSITE/public_html/wp-content/themes/NAMEOFTHEME/functions.php on line 33

Fatal error: require_once() [function.require]: Failed opening required '/home/MYSITE/public_html/wp-content/themes/NAMEOFTHEME/includes/wp-pagenavi/wp-pagenavi.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/MYSITE/public_html/wp-content/themes/NAMEOFTHEME/functions.php on line 33
0
 
LVL 14

Accepted Solution

by:
R-Byter earned 2000 total points
ID: 33518894
Remove that line in functions.php. Find require_once for wp-pagenavi.php and remove it. One more question, what is the theme we are talking about?
Can You point me to the web address?

Regards
0
 

Author Closing Comment

by:wingcat
ID: 33522537
I removed the run once like you suggested and changed that pagnavi's folder name and it started working. Thanks so much - I've been trying to get the developer to help, but he has been unresponsive so far (for the last 2 weeks). I am very satisfied with it now.

Theme name: furu from themeforest.
0
 
LVL 14

Expert Comment

by:R-Byter
ID: 33527342
I am glad You got the result You wanted. Developers can be busy, or lazy. :)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
SEO can be a real minefield to navigate, but there are three simple ways to up your SEO game just be re-assessing your content output.
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question