Tag Info

New answers tagged

0

In my experience if you are going to move your site from Windows to Apache Web Server you will get about 40% increase in speed as Apache is more efficient for Php Applications like WordPress. But still if you have no choice to turn back you must try 10 Ways to Improve WordPress Performance on Windows. Also I would suggest to use P3 (Plugin Performance ...


0

I would suggest to use Search and Replace utility when you move your WordPress Network. it seamlessly update all the fields of the database from old domain to new domain. After that, you only need to update the domain name in wp-config.php. (Tip: do not include http:// and trailing slash while replacing the domain rather just the domain name e.g. ...


0

If you only installed php5-cli then you probably don't have php5-mysql. Try running sudo apt-get install php5-mysql and see if that helps.


1

Once you have https for admin users you need to have https on the front end as wellat least for the logged-in users as their authentication cookies will be sent in clear text when they access the front end and 3rd parties will be able to duplicate them and use them to get into the admin area for that user. This do not require https everywhere but it is just ...


0

In your wp-config.php, you should overwrite the given server-variables that cause the problem by adding this below your database-configuration in wp-config: if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $list = explode(',',$_SERVER['HTTP_X_FORWARDED_FOR']); $_SERVER['REMOTE_ADDR'] = $list[0]; } $_SERVER[ 'SERVER_ADDR' ] = DOMAIN_CURRENT_SITE; $_SERVER[ ...


1

OK. I figured it out: When moving to multisite, manually overriding WP_HOME and WP_SITEURL like below doesn't work anymore: // Overwrites the database to save from constantly editing the DB define('WP_HOME','http://localhost'); define('WP_SITEURL','http://localhost/wp'); I fixed this by manually changing the database so WP_HOME is http://localhost and ...


0

I'll try to explain how it might be done, but not shore it will work: Install 2 website with single db ( 2 copies ). Create new table in you'rs db. Call it wp_options2 and copy everithing from wp_options inside new table in seccond install in wp-config.php, before if ( !defined('ABSPATH') ) add define( 'M7_OPTIONS_TABLE', 'wp_options2' ); in seccond ...


1

That's the pre-3.5 media interface so I think you must be on 3.4.x? Anyway the first way should work as long as you're using the browser (non-multifile) upload... try changing add_filter( 'flash_uploader', '_force_html_uploader' ); to add_action( 'pre-html-upload-ui', '_force_html_uploader' ); and the "js/upload.js" (note the subdirectory - it's ...


0

It seems like there was some kind of problem with my multisite setup which caused WordPress to fetch the categories from some other blogs posts. (Can't really tell where from actually). However by writing switch_to_blog(1) (which it always will be) it seemed to work as it should.


0

It can be done, I did it here for example: http://krimsonkloverdev.malbert.me/ - dev site with seperate wordpress install http://www.malbert.me/ - main site on root level. I set everything up at my host, I'd recommend you just contact them first and be sure you can have separate database installs as that's basically all you need.


0

Since I was able to find a solution, I am answering the question myself. Unlike what I have read elsewhere, it is indeed possible to place wp-content outside of the document root. Open basedir needs to be disabled, and the path to the new folder needs to have sufficient permissions. Concerning the issue with custom fonts, I found the solution here: ...


0

For LAN access add the following to the /etc/hosts file: 192.168.0.10 (ip of WordPress server) domain.com or localhost domain.com if the server is on the same machine


0

I highly recommend BackupBuddy (a paid solution, from iThemes.com). Recommended non-paid alternative include: the "Duplicator" plugin. the "Better Search Replace" plugin, based upon the excellent interconnect/it script mentioned by 'Privateer'. the "WP Migrate DB" plugin. All of the above properly and automatically handle search-and-replace of URLs ...


0

This is an old question, but I figured I'd post my answer as I just had to deal with this problem and figured out a temporary workaround that got it to work for me. WARNING: This requires modifying core which is NOT recommended. If you use this workaround, you should probably remove the workaround when you've finished updating. As of WP 4.1, the problem ...


6

my name is Daniel Kanchev and I work for SiteGround as a Senior Web Apps Engineer. The described issue is pretty strange and I just configured a test WordPress Network on one SiteGround shared server. I did not face any similar issues and I used sub-domain names with a wildcard SSL certificate. Usually such issues are caused by Apache VHost misconfiguration ...


0

Velvet Blues is what you're after. Also, I'm sure you're probably doing this already, but I probably should say it anyway: it's best practice to discourage search robots from indexing the site while it's on its developmental URL. If you prefer to use a MySQL query instead of Velvet Blues, this should work too: UPDATE wp_posts SET post_content=(REPLACE ...


0

I'd recommend the following: (no affiliation) https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ For some reason I've had odd experiences with the search and replace db plugin recently. Also, I'd avoid using the defines in your wp-config.php file as some plugins do not use it and show strange behavior. Better to update the ...


0

There are few ways to change the URL as you can see here: http://codex.wordpress.org/Changing_The_Site_URL You can either use constants like so in your wp-config.php: define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com'); Or you can change the database. A good plugin you can use is the Search and Replace: ...


0

I've been looking for details on why that line is suggested for a multisite install using subdomains as well. I actually question if both of these are relevant for a subdomain install: RewriteRule ^(wp-(content|admin|includes).*) $1 [L] RewriteRule ^(.*\.php)$ $1 [L] In a sub-directory install the rules are setup slightly different to strip the ...


0

You should look into Bedrock: roots.io/wordpress-stack/ Sounds like it'd be a good starting point for you. roots.io is, IMO, as good as it gets for theme development. I've used it for some time now and at the point where I know Bedrock would be a far better workflow - is a little daunting though so love to know how you get on. In terms of multisite ...


2

The database Initially you should update all references to your old domain in the database. The following SQL will take care of that, but first read these notes - This SQL assumes that you are using the default wp_ table prefix. Simply change this to your chosen table prefix if you have changed it. Replace datebas_name with the name of the database ...


0

Plugin that are already activated per network are hidden from the single site’s plugin list. Plugins with a header Network: true are always hidden, even when they are not activated.


0

You can hard-code this change for all your sites like this: 1. Create a new php file with a path like this: wp-content/mu-plugins/no_date_assets.php If the wp-content/mu-plugins folder does not already exist, you will have to manually create it. 2. In that file paste the following: <?php $uploads_use_yearmonth_folders = get_option( ...


1

Sorry this should be a comment --> you should be able to use a switch to blog http://codex.wordpress.org/Function_Reference/switch_to_blog This will allow you to grab the main blog ID, from there you can use a WP list pages or a http://codex.wordpress.org/Function_Reference/wp_nav_menu to display the menu of your main site on the other blogs within the ...


0

I think you might be new with WP Multisite. That is OK. I'm using Multisite for last few years and I really don't know any way to put the different site tables in different database. The way WP Multisite works is a single WP installation for multiple WP site. Now suppose you have a database called my_multisite; within this database WordPress will create all ...


0

Check to see what you're getting. The new WP_Query() isn't working for some reason. Do a var_dumpon it. I suspect that you aren't getting any results from the query, resulting in a Trying to get property of non-object when you try to access the methods.



Top 50 recent answers are included