Solved

wordpress - can't activate WP-PageNavi plugin

Posted on 2010-08-24
7
1,789 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
  • 4
  • 3
7 Comments
 
LVL 14

Expert Comment

by:R-Byter
Comment Utility
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
Comment Utility
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
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:wingcat
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
I am glad You got the result You wanted. Developers can be busy, or lazy. :)
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
PHP and Soap 3 26
Adding Extra Information box 4 23
Codiing Non-Existent Links 4 21
url rewrites not working in codeigniter 2 8
An earlier version of this article was originally posted on my personal blog at: ​http://www.brianjmatis.com/2014/07/07/enabling-nextprevious-post-links-in-wordpress/ Introduction In most blogs, a fairly common navigational element is to have li…
This article discusses four methods for overlaying images in a container on a web page
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now