Sal Ferrarello
Forum Replies Created
-
Forum: Plugins
In reply to: [Register Plus Redux] Multiple Notification Emails being sentDisclaimer first, this patch was based on a previous version. I’ve applied the changes to the latest version of the plugin and it seems to work but it has not been tested thoroughly. This is unsupported and you can use it at your own risk.
Replacing rpr-admin-menu.php with the revised version at
https://gist.github.com/salcode/eb541ee54ce840287730 should solve the problem.What the code is doing – I’m adding a check for the current role to ensure the user has not already been approved.
If the authors want to get in contact with me, I’d be happy to help them integrate these changes into the plugin.
Forum: Localhost Installs
In reply to: Setup root directory on MAMPIf I understand correctly, it sounds like you’d like to use a relative path rather than an absolute path.
You should be able to get this behavior by loading your MAMP WordPress site at
https://localhost/
rather than
https://localhost/wp-project-directory/To make this change, go to MAMP > Preferences > Apache > Select…
and choose the root directory of your WordPress site (i.e. where wp-activate.php and wp-blog-header.php are located).
You will then need to Stop Servers and Start Servers to reload Apache with the updated settings.The disadvantage to this solution is you’ll only be able to work on one site at a time locally.
Forum: Localhost Installs
In reply to: Turn off cahce?That sounds like PHP OPCache to me. I had a similar problem and some confusion about the correct php.ini file and the correct lines.
The correct php.ini file is:
/Applications/MAMP/bin/php/php5.5.3/conf/php.iniand the lines to comment out are
[OPcache] zend_extension="/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/opcache.so" opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.revalidate_freq=60 opcache.fast_shutdown=1 opcache.enable_cli=1
I’ve written a blog post about it at https://salferrarello.com/mamp-cache-settings/
Forum: Localhost Installs
In reply to: Local copy of live siteI’d try the following:
In MAMP go to
Preferences > Ports
and change
Apache Port from 8888 to 80.This will allow all your sites to load without the :8888, including your WordPress site.
Forum: Localhost Installs
In reply to: Using Ip address instead of localhostHi David,
I’d try adding this line to your wp-config.php file
define ('JETPACK_DEV_DEBUG', true);
Jetpack is auto-enabling JETPACK_DEV_DEBUG when you load from localhost but when you use your IP address you need to set it explicitly.
You can read about this at
https://jetpack.me/2013/03/28/jetpack-dev-mode-release/Forum: Fixing WordPress
In reply to: 3.6 upgrade – searchform.php not workingAdding this code to your functions.php should do the trick.
function search_form_no_filters() { // look for local searchform template $search_form_template = locate_template( 'searchform.php' ); if ( '' !== $search_form_template ) { // searchform.php exists, remove all filters remove_all_filters('get_search_form'); } } add_action('pre_get_search_form', 'search_form_no_filters');
I did a write up of this at https://salferrarello.com/searchform-php-wordpress-3-6-broken/
Forum: Themes and Templates
In reply to: 3.6 upgrade – searchform.php not workingAdding this code to your functions.php should do the trick.
function search_form_no_filters() { // look for local searchform template $search_form_template = locate_template( 'searchform.php' ); if ( '' !== $search_form_template ) { // searchform.php exists, remove all filters remove_all_filters('get_search_form'); } } add_action('pre_get_search_form', 'search_form_no_filters');