Solved

wordpress - can't activate WP-PageNavi plugin

Posted on 2010-08-24
7
1,823 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
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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
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…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

792 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