Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   All pages return 'Not Found' with /null URL after activating plugin. (http://forum.bytesforall.com/showthread.php?t=3389)

ianhaycox Sep 11, 2009 07:44 AM

All pages return 'Not Found' with /null URL after activating plugin.
 
Hi,

After activating a plugin every page, user and admin, displays the content 'Not found' and the URL is always sitename.com/null All the sidebars,header and footer are displayed correctly. Visiting any page/link re-directs back to /null

Deactivating the plugin restores normal operation.

The plugin in question is, http://wordpress.org/extend/plugins/...racing-league/

I am the author of the plugin and have determined, with help from the user, sdjukic, that after changing to the default theme my plugin activates and the site works OK.

Changing back to atahualpa we found that after commenting out the action 'wp_print_scripts' in my plugin then everything works OK. The action for wp_print_scripts just calls wp_enqueue_script with the name of a fairly simple Javascript file, using SACK, to validate user input.

I have installed the atahualpa theme, same version 3.4.2 and all the users other plugins on my test server and do not have a problem. I haven't applied all the same theme/plugin settings are there are so many.

I have spent hours and hours trying to fix this, and I'm not blaming this theme, I would just like to find out why this is happening.

Any help would be appreciated, as this user, sdjukic, who has donated to alahulpa, would like to use my plugin and and I would like to ensure that other users do not have a problem.

Apologies for duplicate post in http://wordpress.org/support/topic/3...2#post-1208026 as sdjukic mentioned this forum after I posted.

Thanks,

Ian.

sdjukic Sep 11, 2009 07:58 AM

First, to thank Ian for support about this problem I discovered.
My site URL is:
http://simracing.nacionalnaklasa.rs/

I am using Atahualpa 3.4.2 and wordpress Version 2.8.4

We have already tried to uninstall several other plugins but without success.
After activating Ian plugin same error with URL/null returns.

fanbus Sep 19, 2009 05:26 PM

Another plug-in that causes this is Featured-Content-Gallery .. which is a shame, cos it looks so nice.
:(

Any suggestions for something similar .. or better yet, a fix to the problem??

http://www.featuredcontentgallery.com/

juggledad Sep 19, 2009 07:42 PM

ianhaycox - I just installed the plugin and have no errors - did you fix something?

ianhaycox Sep 20, 2009 01:38 AM

2 Attachment(s)
Thanks for the response, however, I haven't managed to fix this yet.

I did get it to work on http://simracing.nacionalnaklasa.rs/ by removing the call to wp_enqueue_script in the function actionWpPrintScripts() . The call(s) to wp_enqueue_script generate the following code,

Code:

<script type='text/javascript' src='http://simracing.nacionalnaklasa.rs/wp/wp-includes/js/tw-sack.js?ver=1.6.1'></script>
<script type='text/javascript' src='http://simracing.nacionalnaklasa.rs/wp/wp-includes/js/prototype.js?ver=1.6'></script>

<script type='text/javascript' src='http://simracing.nacionalnaklasa.rs/wp/wp-includes/js/scriptaculous/wp-scriptaculous.js?ver=1.8.0'></script>
<script type='text/javascript' src='http://simracing.nacionalnaklasa.rs/wp/wp-includes/js/scriptaculous/effects.js?ver=1.8.0'></script>
<script type='text/javascript' src='http://simracing.nacionalnaklasa.rs/wp/wp-content/plugins/motor-racing-league/js/motorracingleague.js?ver=2.8.4'></script>

If the code above is pasted into the function actionWpHead() then my plugin works correctly. Bizzare. Obviously this is not a long-term solution as the Javascript script file locations and versions are hardcoded.

Interestingly, sdjukic, has now reported that one of the theme configuration options does not work. The option 'Add HTML/CSS Inserts' only allows one line of entry, not multiple lines. If my plugin is deactivated then the theme option works OK. See attached screenshots.

I have reproduced this on my test server and Firefox reports an error in the Javascript console as,

Code:

Error: $ is not a function
Source File: http://localhost/wp/wp-includes/js/prototype.js?ver=1.6
Line: 3920
Error: this.inject is not a function
Source File: http://localhost/wp/wp-admin/load-scripts.php?c=1&load=prototype,jquery,utils,sack,scriptaculous-root,scriptaculous-effects&ver=5c268ce53a079c3406fccaea806572c3
Line: 856

At first glance it looks like something is dynamically loading SACK and maybe there is a version conflict. http://simracing.nacionalnaklasa.rs/ does not use Featured-Content-Gallery but does use Next Gen Gallery. Both I believe are based on mootools. (mootools.net)

Not being able to reproduce the problem makes it difficult to fix, so any further hints or help would be appreciated.

Regards,

Ian.

cagsan Dec 19, 2009 01:54 PM

Check out url replace in .htaccess

rcbramhall Feb 26, 2010 09:26 AM

I am having the same problem with a different plugin. I think the plugin causing the problem is the Formbuilder plugin (http://truthmedia.com/wordpress/formbuilder/). I get the "null" page on different pages and when trying to go to site admin (/wp-admin). Sometimes, if I click the link again, it takes me to the page ok. So, the problem is intermittent and I can't seem to find a reproducible pattern. The site is: www.springfieldeducationfoundation.org. Any help would be appreciated.


All times are GMT -6. The time now is 03:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.