Solved

wordpress - can't activate WP-PageNavi plugin

Posted on 2010-08-24
7
1,839 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

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 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
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 Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

726 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