Bootstrapping WordPress MultiSite Outsite of WordPress – No $wpdb

You’ll want to include the wp-load.php, not the wp-config.php. Depending on how you’re doing it, you may also have to set $_SERVER variables if they aren’t already set to prevent WordPress from trying to redirect you. For example: $_SERVER = array( “HTTP_HOST” => “http://example.com”, “SERVER_NAME” => “http://example.com”, “REQUEST_URI” => “https://wordpress.stackexchange.com/”, “REQUEST_METHOD” => “GET” );

Installing WP twice in same Directory?

Have you considered setting your main site to a multisite setup? This would allow you to use the same wordpress files from the root and serve a wordpress site under the /seperatesite/ directory without the need for duplicating files. take a look at: http://codex.wordpress.org/Create_A_Network If you need any specific help regarding setting this up then … Read more

Getting this code to work in Multisite

The Problem: When wp-cron.php is called, it includes only: require_once( dirname( __FILE__ ) . ‘/wp-load.php’ ); so the problem you are facing is that wpmu_delete_blog() is undefined when you call it from your remove_blogs_daily() function. Possible Solution: You therefore need to add this line: require_once( ABSPATH . ‘wp-admin/includes/admin.php’ ); into your code to fix that. … Read more

Disabling outbound connectivity on web servers [closed]

WordPress uses an HTTP class to make outbound requests. These requests are mainly for plugin, themes and core updates; pull news/rss content; and make third party API requests. There may be many different reasons for disabling outbound requests, security is the primary one. A WP instance with disabled outbound requests is more secure. Many institutions … Read more

Icon font not working on subdomains of multisite

The problem: Console log: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at xxx. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). The solution: Add the following header to your .htaccess file: # https://wordpress.org/support/topic/font-awesome-not-working?replies=8#post-4921179 # Allow icon font to load on subdomains of WordPress multisite install. <FilesMatch “.(ttf|otf|woff)$”> Header set Access-Control-Allow-Origin “*” </FilesMatch> …before: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)