pschwarzgm
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Split Payments Plugin?WooCommerce Split Order Payments apparently does this (but you have to be using WooCommerce already). It’s not free, you have to pay for it. It’s available on CodeCanyon.
https://codecanyon.net/item/woocommerce-split-order-payments/23294536
Forum: Plugins
In reply to: [Map Posts Free] Work with custom post typesSorry for the late reply – as the plugin author I did not receive an email or notification that a question was asked, or it went to my junk folder. Previously the plugin worked for every post type. I later restricted it to Post and Page types because custom post types are used for a lot of things, many of which geocoding makes no sense. The original code still exists but is commented out – if you feel comfortable modifying code you can re-enable by:
1. Edit map-posts-common.php (in folder plugins/map-posts-free/includes/
2. Look for function namedadd_register_map_meta_box()
3. Comment out the 2 lines of code under the comment
//Alternate code to add map configuration to only non-custom post types and pages
4. Re-enable the code commented out below i.e.
$post_types = get_post_types( array(), ‘objects’ );
foreach ( $post_types as $post_type ) {
add_meta_box( ‘define_map_meta_box’,
‘Define Map’,
array($this,’add_define_map_meta_box’),
$post_type->name, ‘normal’ );
}Forum: Fixing WordPress
In reply to: Fake User RegistrationsInvest in WordFence and Wordfence Login Security or similar security plugin. You may need the pro version for some of this capability. You can do things like:
1. Add captcha for registration and login
2. Ban access from specific IPs, domains, geographic regions, email domains,
3. Disallow some common spammer user names and password patterns
4. Limit number of login attempts
5. With Wordfence Login Security can also force 2-factor authenticationForum: Fixing WordPress
In reply to: Homepage and Posts Content Not ShowingIt looks like you are using a caching plugin. When you make changes like you described above you need to clear the cache – otherwise the site will continue to try to use old versions of the web pages or pages won’t fully load.
If you are using W3 Total Cache (W3TC – one of the most popular caching plugins), from the admin go to Performance > Dashboard and click the “empty all caches” button.
If you are using a different caching plugin – or caching not based on a plugin – consult the relevant documentation for “clearing cache”.
Forum: Fixing WordPress
In reply to: Plugin for two differents profilesYou might want to try Frontend Dashboard
https://www.ads-software.com/plugins/frontend-dashboard/
Note that you would have to create 2 new pages for Frontend to redirect users to (unless these already exist, and you just need a means to get users there).
If you are already using a membership plugin (like Memberpress), it will likely already have the capability to direct different types of members to different pages upon login (or the same page, but loaded with different content). Its just a matter of finding documentation on how to do that.
Forum: Fixing WordPress
In reply to: problem functions.phpSome details of what happened would be useful. What exactly are you experiencing, and what’s the last thing you did before problems occurred ?
Also – hyperlinks to your screenshots are incorrect; they should be:
https://snipboard.io/PzMfNG.jpg
https://snipboard.io/OuF1Ts.jpg
https://snipboard.io/wtWOJQ.jpgThat being said …
BEST OPTION
Replace the functions.php file with a backup version that worked (if you have one). If you don’t have a backup
1. Make a copy of your current functions.php file as a backup
2. Delete your current functions.php or rename it to e.g. functions-old.php
3. Download a copy of the theme you are using
4. Unzip the file and copy the functions.php file from the theme download
5. Upload the functions.php file copied from the themeNote that hat will wipe out any customizations you have made.
WHAT IS PROBABLY CAUSING THE ERROR
I can see 2 potential problems with the code in line 5700
1. First parameter supplied is $fp. I’m guessing it should be $file.
2. The second parameter has to resolve to an integer value. I think you are trying to multiply the WP constant KB_IN_BYTES by 8 – if that’s the case then KB_IN_BYTES should not be in quotes.If I’m right, than line 5700 should be
$file_data = fread( $file, 8 * KB_IN_BYTES );