neosin
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Stop wordpress rewriting HTACCESS file ?thanks all for helping out
WPML says they are looking to fix this issue in the next release
Forum: Fixing WordPress
In reply to: Stop wordpress rewriting HTACCESS file ?We use WPML to handle our site in two languages. There is a function in that plugin that enables rewriting the htaccess if you update you site language from one to the other. The problem is that we are not changing the sites language and yet the htaccess is being changed.
This is our default working rewrite:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
this is sometimes what it changes it to:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /fr/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
However this is not always the case, for example yesterday I added some rewrite rules outside of the # BEGIN # END to handle redirecting for old links to new locations. This morning the htaccess was missing those changes and yet the rest of the file was fine.
truly bizarre situation
Forum: Fixing WordPress
In reply to: Stop wordpress rewriting HTACCESS file ?I understand.
The problem we are having is that wordpress is randomly modifying our htaccess file. Both the code between the lines you mentioned and removing stuff outside of that.
The ideal solution would be to disable the htaccess modification function entirely. Make it an optional ability that users can turn on and off.
Forum: Fixing WordPress
In reply to: Stop wordpress rewriting HTACCESS file ?so if we remove # BEGIN WordPress # END WordPress it will stop changing the htaccess file?
Forum: Reviews
In reply to: [Bitcoin Payments for WooCommerce] Invalid Electrum Keypotential solution for those using v2+ with the new 111 character master keys, someone please verify
open the file bwwc-bitcoin-gateway.php
find line
else if (!preg_match ('/^[a-f0-9]{128}$/', $this->electrum_master_public_key))
replace with
else if (!preg_match ('/^[0-9a-zA-Z]{111}$/', $this->electrum_master_public_key))
open file bcmath_Utils.php
find
define('MAX_BASE', 128);
replace with
define('MAX_BASE', 111);
Forum: Reviews
In reply to: [Bitcoin Payments for WooCommerce] Invalid Electrum Keythere’s a post regarding the master key length bug here
https://bitcointalk.org/index.php?topic=1026571.0I’ve bookmarked it and will post an update here if anyone finds a solution
I added the code as mentioned but I have same error
Only an administrator can add new users.
In wppb.register.php the code that is giving this error for everyone
if ( $error ) : $registerFilterArray['errorMessage'] = '<p class="error">'. $error .'</p><!-- .error -->'; $registerFilterArray['errorMessage'] = apply_filters('wppb_register_error_messaging', $registerFilterArray['errorMessage'], $error); echo $registerFilterArray['errorMessage']; endif; if ( current_user_can( 'create_users' ) && $registration ) : $registerFilterArray['alertMessage1'] = '<p class="alert">'. __('Users can register themselves or you can manually create users here.', 'profilebuilder') .'</p><!-- .alert -->'; $registerFilterArray['alertMessage1'] = apply_filters('wppb_register_alert_messaging1', $registerFilterArray['alertMessage1']); echo $registerFilterArray['alertMessage1']; elseif ( current_user_can( 'create_users' ) ) : $registerFilterArray['alertMessage2'] = '<p class="alert">'. __('Users cannot currently register themselves, but you can manually create users here.', 'profilebuilder') .'</p><!-- .alert -->'; $registerFilterArray['alertMessage2'] = apply_filters('wppb_register_alert_messaging2', $registerFilterArray['alertMessage2']); echo $registerFilterArray['alertMessage2']; elseif ( !current_user_can( 'create_users' ) && !$registration) : $registerFilterArray['alertMessage3'] = '<p class="alert">'. __('Only an administrator can add new users.', 'profilebuilder') .'</p><!-- .alert -->'; $registerFilterArray['alertMessage3'] = apply_filters('wppb_register_alert_messaging3', $registerFilterArray['alertMessage3']); echo $registerFilterArray['alertMessage3']; endif; if ( $registration || current_user_can( 'create_users' ) ) :
the message we are getting is from this code
elseif ( !current_user_can( 'create_users' ) && !$registration) : $registerFilterArray['alertMessage3'] = '<p class="alert">'. __('Only an administrator can add new users.', 'profilebuilder') .'</p><!-- .alert -->';
what is it checking?
From what I can see, it is checking if the user cannot create a user and the registration is turned off then show the message.How can this be returning this message when registration is turned on?
I too have the exact same issue even with “Settings” -> “General” tab you have “Membership – Anyone can register” checke
I visit this user website and see that the issue is still not resolved
https://www.schleichweb.nl/registreren/The message is the same “Only an administrator can add new users.”
So Either
1. Something was udpated in the plugin and it doesnt work properly
2. WordPress 3.8 is not working with this pluginI too have the exact same issue even with “Settings” -> “General” tab you have “Membership – Anyone can register” checked.
Forum: Plugins
In reply to: [WP Favorite Posts] Favorite posts page emptyOK I figured out the issue.
The plugin is completely based on post id which doesn’t work for me since we have custom database and wp db so what I really need is simply to save the current URL the user is on and show that.Forum: Plugins
In reply to: [Polylang] polylang – date in french?Forum: Plugins
In reply to: [Brightcove Video Cloud] How to enable for livestream?ok for anyone else having this issue, we figured it out.
You need to visit
https://opensource.brightcove.com/tool/api-test-tool
enter your “read token” first
then it will list your videos and streams.
filter it out to make it easier to find the videoId of your stream.
Funny they don’t provide videoID’s for streams in https://videocloud.brightcove.com/publishinganyways thats the roundabout way of finding your livestream video id.
from there the plugin works great.Forum: Fixing WordPress
In reply to: How To rename or move wp-admin, wp-content, wp-includes etc.Forum: Hacks
In reply to: Anyone tried wp reloaded?So update
I tried this out on localhost and it works flawlessly.
installed buddypress and a bunch of plugins.
Had to scan the plugins and change the paths as instructed in the pastebin but it was easy and took no time at all. awesome!Many FREE plugins and templates have injection code that will insert ads or links in your site. The code can be encrypted in PHP or javascript and can be quite hard to find. I would suggest scanning a plugins source code for any unusual code as they sometimes randomize the display of these ads/links and included external files.
If you find what appears to be an encrypted string post a question about it in the plugin or template page to make more people aware of the issue.
so rule of thumb, if something is encrypted ask yourself why; what are they hiding and do you really want this potentially dangerous code running on your site.
Also of note, if you happen to download cracked or stolen Plugins or Templates, the pirates have a tendency to add their own code. So just don’t bother with that stuff, it’s seriously more trouble than it’s worth.