TomodomoCo / total-slider

A WordPress plugin for creating, editing and removing ‘slides’ with text and images (for a homepage, for example).
GNU General Public License v2.0
7 stars 2 forks source link

Can't save #28

Closed chrisvanpatten closed 12 years ago

chrisvanpatten commented 12 years ago

Again working on the unstable branch, when I hit save on a new slide, I get the following error:

Uncaught TypeError: Cannot read property 'left' of null interface.min.js:82
  (anonymous function) interface.min.js:82
  f.event.dispatch load-scripts.php:3
  h.handle.i

Is this because I deleted <?php $s->the_x();?> and <?php $s->the_y();?> from the template? (I was locking X/Y so I figured I didn't need them)

PeterUpfold commented 12 years ago

Could you define('SCRIPT_DEBUG', true); in wp_config to get a non-minified error reference? I can probably track this down anyway, but if you have a moment and already have it open...

chrisvanpatten commented 12 years ago

I don't think the uncompressed version is on par with the minified version. Now I see this error:

Uncaught TypeError: Cannot call method 'bind' of undefined /wp/wp-admin/media-upload.php?total-slider-uploader=bgimage&total-slider-slide-group-template=carbonview&total-slider-slide-group-template-location=theme&type=image&post_id=0&tab=library:53

And get this pop-up when I save a slide:

Please correct the following errors with the form.

The supplied background image URL is not a valid URL.

The preview pane doesn't update with the image either, although interestingly the slide thumbnail in the slide navigator on the top does update properly.

Edit: I take it back: I switched to the compressed code and am still getting this error. So now there are two bugs. I'm just ruining everything.

PeterUpfold commented 12 years ago

You're correct, this is to do with templates that do not use the X/Y tags in their PHP file.

I am working on this; here are a few notes to myself that seem appropriate here:

I haven't looked at why you're getting background image issues. That could be a separate thing. Does it happen with other templates?

chrisvanpatten commented 12 years ago

It does appear to be happening with other templates. I can file a separate issue, if you'd like.

PeterUpfold commented 12 years ago

Please do. I'm tracking it down now — there's some weirdness with the new ID-based background URLs and something is casting blank backgrounds (ID '0') to bool(false). That is arriving at the frontend as the string 'false', and that isn't a valid background URL.

PeterUpfold commented 12 years ago

Can you try this commit to see if it resolves this and/or #31?

PeterUpfold commented 12 years ago

I’m going to assume this is the same deal as #31, and close it unless we can reproduce the problem again.