PDA

View Full Version : Help About plugin



Online Movies
02-20-2011, 09:53 AM
i am new on this forum so that no body know me but hope that i will get the answer of my problem

i am installing wordpress plugin "all in one seo" but when i install following error occured.plz help me how to solve this problem


Plugin could not be activated because it triggered a fatal error

Warning: main(C:\inetpub\vhosts\enjoypaki.com\httpdocs\movi es/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php) [function.main]: failed to open stream: No such file or directory in C:\inetpub\vhosts\enjoypaki.com\httpdocs\movies\wp-content\plugins\allinoneseo\all_in_one_seo_pack.ph p on line 488

Fatal error: main() [function.require]: Failed opening required 'C:\inetpub\vhosts\enjoypaki.com\httpdocs\movies/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php' (include_path='.;./includes;./pear') in C:\inetpub\vhosts\enjoypaki.com\httpdocs\movies\wp-content\plugins\allinoneseo\all_in_one_seo_pack.ph p on line 488

weegillis
02-20-2011, 02:50 PM
Question: Are you attempting to run the plug-in locally (on your own hard drive) as a pre-flight check? We can see lots of DOS syntax in there. (C:\, etc.).

Web protocol URL's use only forward slashes ('/') as path separators.

The first possible error that comes to mind is the path to your includes files. Any erroneous characters (such as ';') are going to throw errors, as will pointing to the wrong path.

ronniethedodger
02-20-2011, 06:12 PM
The path is not needed in this case. The path is in a constant Url within the plugin, and should be correct since it is used and the definition did not fail. The line of offending code is:



if ( ! defined( 'WP_CONTENT_URL' ) )
define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' );
if ( ! defined( 'WP_CONTENT_DIR' ) )
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
if ( ! defined( 'WP_PLUGIN_URL' ) )
define( 'WP_PLUGIN_URL', WP_CONTENT_URL. '/plugins' );
if ( ! defined( 'WP_PLUGIN_DIR' ) )
define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' );

require_once( WP_PLUGIN_DIR . '/all-in-one-seo-pack/aioseop.class.php');



We can rule out other path errors since wordpress is up and running.

The path and filename in the error looks valid. So the file must be missing.

I would delete the plugin and reinstall it.