[email protected]
Forum Replies Created
-
Hey, thanks, micropat! Appreciate the kind words too. Looks like I’ve tracked it down to the Zurb Foundation 5 framework (foundation.min.js) that may be suppressing the touch event, so I’ll have to take some time tomorrow to see if I can patch it using a custom event handler. I’ll follow up once I get it fixed, in case anyone else runs into the same issue. Great plugin, I’ve used it successfully on other sites!
Sorry, I forgot to add, the site is running WP version 4.1, and version 1.5.1 of the plugin. Any assistance would be greatly appreciated. Thanks in advance!
Diva,
When you tried the fix I suggested, did you change this ‘invoicing’ to ‘invoices’?:
if( substr($_SERVER["REQUEST_URI"], 0, 11) != '/invoicing/' ) { include 'sfc-base.php'; }
to this:
if( substr($_SERVER["REQUEST_URI"], 0, 11) != '/invoices/' ) { include 'sfc-base.php'; }
Also, it looks like you’re using the Simple Facebook Connect widget on the invoice page… Not sure if it’s needed on that page, but that could also be causing a conflict.
It’s checking for the word “invoicing” in the URL. If you’ve changed the default page title or permalink for the invoicing page, you’ll just simply need to use the new title/permalink. For instance, if you renamed the page to “invoice”, you’ll simply use that instead of “invoicing”.
It does seem that the devs may have come up with a workable patch, so test that out and let us know how it works out.
If Simple Facebook Connect and WP-Invoice are installed, invoices allowing partial payments will break… Essentially, when you go to select the radio button for the partial payment (on the invoice page), it doesn’t update or reflect the correct amount. It looks like more of a problem with SFC than WP Invoice. The SFC plugin should allow you to select custom post types to load the Graph code to save unnecessary calls to the script, but there is no provision for it. Checking the request URI makes it easy enough to disable it on the invoice pages.
I posted this on another thread, but thought I’d add it here in case folks are searching… If you’re experiencing issues with WP-Invoice and Simple Facebook Connect, here’s how to fix it.
Open the following file: plugins > simple-facebook-connect > sfc.php. On line 65, you’ll see some code that loads the sfc-base.php file if the PHP and WordPress core are of a specific version or greater. It looks like this:
if ( !version_compare(PHP_VERSION, '5', '<') && version_compare( $wp_version, '3.2.999', '>' ) ) { include 'sfc-base.php'; } else { add_action('admin_notices', create_function( '', "echo '<div class=\"error\"><p>".__('Simple Facebook Connect requires PHP 5 and WordPress 3.3 to function. Please upgrade or deactivate the SFC plugin.', 'sfc') ."</p></div>';" ) ); }
Change it to this:
if ( !version_compare(PHP_VERSION, '5', '<') && version_compare( $wp_version, '3.2.999', '>' ) ) { if( substr($_SERVER["REQUEST_URI"], 0, 11) != '/invoicing/' ) { include 'sfc-base.php'; } } else { add_action('admin_notices', create_function( '', "echo '<div class=\"error\"><p>".__('Simple Facebook Connect requires PHP 5 and WordPress 3.3 to function. Please upgrade or deactivate the SFC plugin.', 'sfc') ."</p></div>';" ) ); }
Essentially, you’re only loading the Simple Facebook Connect plugin on the page if the Request URI does NOT include ‘/invoicing/’. Hope this helps someone!
For all of those having issues with WP-Invoice and Simple Facebook Connect, here’s how to fix it (temporarily, until it gets overwritten by an update)
Open the following file: plugins > simple-facebook-connect > sfc.php. On line 65, you’ll see some code that loads the sfc-base.php file if the PHP and WordPress core are of a specific version or greater. It looks like this:
if ( !version_compare(PHP_VERSION, '5', '<') && version_compare( $wp_version, '3.2.999', '>' ) ) { include 'sfc-base.php'; } else { add_action('admin_notices', create_function( '', "echo '<div class=\"error\"><p>".__('Simple Facebook Connect requires PHP 5 and WordPress 3.3 to function. Please upgrade or deactivate the SFC plugin.', 'sfc') ."</p></div>';" ) ); }
Change it to this:
if ( !version_compare(PHP_VERSION, '5', '<') && version_compare( $wp_version, '3.2.999', '>' ) ) { if( substr($_SERVER["REQUEST_URI"], 0, 11) != '/invoicing/' ) { include 'sfc-base.php'; } } else { add_action('admin_notices', create_function( '', "echo '<div class=\"error\"><p>".__('Simple Facebook Connect requires PHP 5 and WordPress 3.3 to function. Please upgrade or deactivate the SFC plugin.', 'sfc') ."</p></div>';" ) ); }
Essentially, what you’re doing above is only loading the Simple Facebook Connect plugin on the page if the Request URI does NOT include ‘/invoicing/’. Hope this helps someone!
Just installed version 6.0.0.3 on clean wordpress 3.5 install today, and I ran into the same thing. Thanks, Reinharts, for the fix! It worked perfectly. It’s just odd that though Shareaholic intended to address this over 5 months ago, still nothing has changed.