[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

wordpress - can't activate WP-PageNavi plugin

Posted on 2010-08-24
7
Medium Priority
?
1,899 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
Industry Leaders: 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!

 

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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
Suggested Courses

656 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