Support Forum

Image and file uploader not working

TO tomerus
tomerus
Member

Hi Simple press

 

Just installed the image & file uploader but it`s not working. I can activate the plugin, I can add a picture but it won`t upload!!! I checked all the file permissions etc. Also disabled all other plugins and checked permissions. Kind of lost here. When I hover over the “upload” button I get a “using: runtimehtml5” message.

Saw some posts on Jquery but I`m realy a newbie and not technical. Can you please help 

 

 

26 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

If by ‘wont upload’ you mean literally nothing happens when you click on the button, then yes – you most probably have a JavaScript conflict – your wp theme or another plugin – which needs to be fixed. This codex article explains what this means and what to look for:

http://codex.simple-press.com/codex/faq/troubleshooting/what-is-this-jquery-conflict/

We can confirm that by just looking at the html source but would need a link.

TO tomerus
tomerus
Member

www.gamedogshistory.com/forum

Thank you!

ps Using the Pagelines Pro edition theme. Again I have no knowledge in coding :-(

YS Yellow Swordfish
Yellow Swordfish
Member

As predicted your theme is loading jQuery from the google CDN and – just to make it worse – is loading what is now an old, out of date copy.
This is an easy edit to make once the location in the theme files has been found. It is almost certainly being loaded in the themes functions.php file where you will find some lines of code loading scripts. See if you can locatwe that block of code and paste it here and we can tell you what needs to be changed.

Is your forum page supposed to look like this by the way? It is unreadable at the moment…

TO tomerus
tomerus
Member

Thank you! Don`t know why my page is loading all distorted..

Will try to find the code in my theme. Thank you!!

TO tomerus
tomerus
Member

Here is the content of my functions.php file …

————————————————————————————————————

<?php
// Setup — Probably want to keep this stuff…

/**
* Hello and welcome to Base! First, lets load the PageLines core so we have access to the functions
*/
require_once( dirname(__FILE__) . ‘/setup.php’ );

// For advanced customization tips & code see advanced file.
//–> require_once(STYLESHEETPATH . “/advanced.php”);

// ====================================================
// = YOUR FUNCTIONS – Where you should add your code =
// ====================================================

// ABOUT HOOKS ——–//
// Hooks are a way to easily add custom functions and content to PageLines. There are hooks placed strategically throughout the theme
// so that you insert code and content with ease.

// ABOUT FILTERS ———-//

// Filters allow data modification on-the-fly. Which means you can change something after it was read and compiled from the database,
// but before it is shown to your visitor. Or, you can modify something a visitor sent to your database, before it is actually written there.

// FILTERS EXAMPLE ———//

// The following filter will add the font Ubuntu into the font array $thefoundry.
// This makes the font available to the framework and the user via the admin panel.

 

———————————————————————————————————

Is this what you need?

Thanx

YS Yellow Swordfish
Yellow Swordfish
Member

is that it? Disappointing if it is as that IS where it should be and no – it isn’t.

So if not in there the chances are – I would hope – that there is another php file that is set up for parameters and script loading etc. You need to look for functions that start with wp_deregister_script(), wp_register_script() and wp_enqueue_script()…

TO tomerus
tomerus
Member

can`t realy find it.. although I do have the possibility to add code directly in my theme options.. and in the header

see attachment

 

 

TO tomerus
tomerus
Member

ps I can also add scripts in the footer

Update: I saw that pagelines offers a customize plugin for the functions.php.. now this is the new functions php file they give you to edit. Do I need to add code in here?

—————————————————————————————————————————————————

<?php
/**
* PageLines Customize functions.php.
*
* @author Simon Prosser
*/
/*
// —- ADDING NEW TEMPLATES —- //

Want another page template for drag and drop? Easy :)
1. Add File called page.[page-id].php to this folder.
2. Add Template Name: Your Page Name to that file ( see page.base.php for an example. )
3. Thats it! We do the rest for you!

// —- ADDING NEW SECTIONS —- //

Adding new sections is really easy in 2.0
1. Copy your section.[sectionname].php file into the sections folder
2. It will be auto loaded for you.
3. You can now enable/disable the section in the extensions menu.

// FILTERS EXAMPLE ———//

// The following filter will add the font Ubuntu into the font array $thefoundry.
// This makes the font available to the framework and the user via the admin panel.
*/
add_filter ( ‘pagelines_foundry’, ‘my_google_font’ );

function my_google_font( $thefoundry ) {
$myfont = array( ‘Ubuntu’ => array(
‘name’ => ‘Ubuntu’,
‘family’ => ‘”Ubuntu”, arial, serif’,
‘web_safe’ => true,
‘google’ => true,
‘monospace’ => false
)
);
return array_merge( $thefoundry, $myfont );
}
/*
// ====================================================
// = YOUR FUNCTIONS – Where you should add your code =
// ====================================================
*/

 

TO tomerus
tomerus
Member

Anyone please?

 

ps. I just asked the question on the Pgalines forum and they say that pagelines absolutely DOES NOT load any extensional libraries and they think its a plugin doing it. But again when I deactivate all other plugins it still won`t work

YS Yellow Swordfish
Yellow Swordfish
Member

yes – it could well be a plugin. It looked more like the theme based on where it was in the generated html of the page but a plugin could do it.

You have to be careful here when you say it still does not work with all plugins deactivated. The fact that the jQuery being loaded was incompatible with the latest WordPress and up to date plugins does not, necessarily, mean that there are no other issues preventing things from working as they should. The wrong jQuery can disguise other issues that do not become apparent until the first issue is sorted out.

So the important first step is still to find the offending plugin. This is actually quite easy.

if you load the forum – any page – and then view source from your browser menu – and search for ‘jQuery’ you will very quickly see – quite near the top – where it is is being loaded – probably called jQuery.min.js or somthing like that. If you look at that url you will see the reference to googleapis.com quite clearly.

Now if you deactivate plugins one at a time and then RELOAD the forum page and look at the source again – if it is still being loaded from google then the deactivated plugin was not the cause. Work through them one at a time. it really is quite a quick and simple task unless you have a large number if plugins active!

And it IS worth the effort because it is not just SP that can be tripped up by this. Any plugin that relies on the correct libraries being loaded can fail. The good news is that the WP dev team are currebtly looking at this problem to see if they can find a way to stop it happening.

TO tomerus
tomerus
Member

Thank you! will do that. Funny thing is when I select another theme like twentyeleven plopload does work!!

YS Yellow Swordfish
Yellow Swordfish
Member

Any my immediate response to that is still – the theme is the problem. Is it a free theme? Can I download it from somewhere?

YS Yellow Swordfish
Yellow Swordfish
Member

Sadly they are often the worst culprits in our experience.
Feel free to zip it up and email me a copy so I can look at it.