Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm trying to implement this plugin on my live wordpress instilation:

http://wordpress.org/extend/plugins/frontpage-slideshow/

I wouldn't usually ask a question about a plugin directly but this problem is a little strange,

I have a local MAMP installation of wordpress running the plugin, everything db and file wise is identical to the live version, taken from my git repository and a up to date dump of the db.

What's very strange here is that the plugin works with no problems on my MAMP instillation, i can access the admin section no problem.

But on my live wordpress instillation, all javascript is broken on the plugins admin page, even the wordpress admin js that controls the menu drop downs.

I'm not sure what is happening as i have 0 js errors in my console and can see exactly the same files are being loaded as on my local instillation.

The only variable here are the servers, but i'm not sure what could be causing this, does anyone have any ideas?

Edit:

I've isolated the problem down to this line:

$attachments = get_children(array(
                                    'post_type'     => 'attachment',
                                    'post_mime_type'    => 'image',
                                    'post_status'       => null,
                                    'post_parent'       => null,
                                ));

if i remove it everything works fine..

share|improve this question
1  
Sounds wired. Can you see the if the scripts are loaded in the source code? –  Bainternet Jan 26 '11 at 18:41
    
Probably that plugin is overloading the default wordpress script configuration. The forum looks pretty active, have you tried for help there as well? wordpress.org/extend/plugins/frontpage-slideshow/faq - if you find a solution you can even answer your own question here later on! –  hakre Jan 26 '11 at 20:00
    
Try with other plugins disabled... Also confirm if the regular jQuery script is being included in your page(i believe the included scripts will require it, but they don't actually set jQuery as a dependancy when enqueuing). A link to the site would help.. ;) –  t31os Jan 26 '11 at 20:03
    
Playing around it does indeed look like the plugin is stopping the jQuery script from being included correctly, placing an alert inside a document ready in the footer won't alert, but placing it in the header fires it. –  Alex Jan 27 '11 at 12:57
add comment

1 Answer

up vote 1 down vote accepted

Removing the null paramaters fixed the problem:

$attachments = get_children(array(
    'post_type'     => 'attachment',
    'post_mime_type'    => 'image',
));
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.