Wordpress - Error with homepage - wordpress

We have an issue with our wordpress theme http://themeforest.net/item/flowerbomb-multipurpose-responsive-masonry-theme/7799116
The homepage does not appear. another page with errors appears instead.
Can I share the code of the theme and which code should I share so someone can help?
Thank you!!!!!!

Verify:
Include /etc/nginx/mime.types;
in nginx.conf (if nginx then only)
phpfpm and its php.ini configuration,
/etc/php/{version}/fpm/php.ini

Related

Wordpress Multisite SubSites: 302 Moved Temporarily

I've recently changed the domain for Multisite website, I followed the instructions from here https://wpengine.com/support/how-to-change-a-multi-site-primary-domain/
Now, only main site(http://domain.com/) works but the other sites (e.g: http://domain.com/es/) are giving error "302 Moved Temporarily" and redirected to itself (http://domain.com/es/).
Under Network Admin > Sites > Edit(for sub site i.e: http://domain.com/es/) > Settings, Siteurl and Home is also same as the main URL rather than http://domain.com/es/. I tried to change it to http://domain.com/es/ but, opening the http://domain.com/es/ URL updates it back to http://domain.com/
in my wp-config.php file these lines are commented out
//define('WP_HOME','http://fruitionpartners.eu');
//define('WP_SITEURL','http://fruitionpartners.eu');
Is there something I am missing? Please help.

wordpress - "user-profile.min.js" and "password-strength-meter.min.js" blocked via ssl - https

As the Title describes: I have two Wordpress JS´s that where blocked beacause it´s not loading from https. But Why?
I´m not sure if thats right but this is already set: define('FORCE_SSL_ADMIN', true);
My Server try to load it from:
http://examples.tld/wordpress/wp-admin/user-profile-min.js
But it has to be from https:
https://examples.tld/wordpress/wp-admin/user-profile-min.js
Any other suggestions?
Maybe you can try removing http:
//examples.tld/wordpress/wp-admin/user-profile-min.js
Worked for me.

Symfony2: Stylesheets loaded but not applied on NGINX leading to broken error pages

I've just installed a fresh and clean Symfony app. I'm using NGINX as my webserver.
The stylesheets don't show a http 404 error code in devtools network-tab and i can see their content in the preview-tab correctly.
example picture:
Did someone face any issue like this? I'm guessing it might be a permission issue...
EDIT #1: Attached a picture of the chrome devtools showing the css are loaded correctly.
You need to make sure your nginx.conf actually includes the correct mime-types.
http {
include conf/mime.types;
# ...
... or ...
types {
# ...
text/css css;

Cookie Free Domain Doesn't work

I was following this tutorial: http://www.xpertdeveloper.com/2011/07/wordpress-cookie-free-domain/
So, I created (CPANEL) the subdomain static.artswr.com and redirected it to artswr.com/wp-content/
I edited and add the following in the end of the wp-config file:
define("WP_CONTENT_URL", "http://static.artswr.com");
define("COOKIE_DOMAIN", "www.artswr.com");
I am loading everything with <?php bloginfo('template_directory'); ?> but its not working, also I'm getting 404 errors when I try to find a file in static.artswr.com
Instead of
define("WP_CONTENT_URL", "http://static.artswr.com");
Try
define("WP_CONTENT_URL", "http://static.artswr.com/wp-content");
without any redirections from your cpanel. static.artswr.com should point to artswr.com
check below line:
So, I created (CPANEL) the subdomain static.artswr.com and redirected it to artswr.com/wp-content/
You mentioned that you have redirected, but it should not be redirect, It should map to wp-content folder.
Let me know if any comments.

Nginx (as front end to Apache) to serve WP Super Cache static files

I am currently working on my Wordpress blog, which is hosted on a VPS.NET VPS with Nginx as front end to Apache to serve static files, while Apache takes care of the PHP in FastCGI. This seems to be working great, however I haven't yet managed to have Nginx serve WP-SuperCache files as well, which I would like for maximum performance (I am not planning to completely replace Apache with Nginx right now because I've got a Virtualmin license and it does not support Nginx).
I have tried a lot of rules found here and there but in the end none worked for me or I am missing something.
If Apache is stopped, in fact, I can still get images, stylesheets and javascript delivered to the browser by Nginx directly.
But if I try to surf the blog (with pages cached for sure by WP-SuperCache) with Apache stopped, all I get from Nginx is a "502 bad gateway".
Any ideas would be greatly appreciated.
Many thanks in advance.
Nginx can handle your fastCGI. Bundled with Nginx, generally, all Apache does is cost you resources.
Regarding WP Super Cache, if you create a new file and paste this, it'll give you both that and, while we're about it, FURLs...
# if the requested file exists, return it immediately
if (-f $request_filename) {
break;
}
set $supercache_file '';
set $supercache_uri $request_uri;
if ($request_method = POST) {
set $supercache_uri '';
}
# Using pretty permalinks, so bypass the cache for any query string
if ($query_string) {
set $supercache_uri '';
}
if ($http_cookie ~* "comment_author_|wordpress|wp-postpass_" ) {
set $supercache_uri '';
}
# if we haven't bypassed the cache, specify our supercache file
if ($supercache_uri ~ ^(.+)$) {
set $supercache_file /wp-content/cache/supercache/$http_host/$1index.html;
}
# only rewrite to the supercache file if it actually exists
if (-f $document_root$supercache_file) {
rewrite ^(.*)$ $supercache_file break;
}
# all other requests go to Wordpress
if (!-e $request_filename) {
rewrite . /index.php last;
}
Now, goto your virtual host file, or nginx.conf if you bundle your sites, and add a line like ..
# Wordpress WP Super Cache plugin and permalinks.
include /usr/local/nginx/conf/wordpress_params.super_cache;
.. where wordpress_params.super_cache is what you called the file we created, and given a path relative to that I've shown.
Then restart Nginx and turn on WP Super Cache plugin and, for the pretty links, add a permalink structure.
Fact is, there's a lot to know about to get the Nginx install right, especially with WordPress and to configure fastCGI. If you like, this would be a good start for you...
.. Setup WordPress on NGINX (FURLs & Cache) - VPS Bible Pt 13
Re. Virtualmin .. I understand you want a CP, but truth is, the resource cost is greater than the cost of the software .. plus it takes way longer to do stuff with a CP.
I'm currently publishing a 21 part VPS Admin series which addresses the lack of an Nginx CP .. that'll be all you need, frankly.
Given a week or two, I challenge you to tell me it's quicker or otherwise better to use a CP :)
It seems silly to run Nginx through Apache.
Set up Nginx to serve up the php and dynamic pages itself and you'll have a much faster service and won't have the problem where apache dies and leaves your webserver(Nginx) hanging.
If your admin panel doesn't support this, you probably should only be using apache in the first place. Either do one or the other, both is just asking for problems.
You may use FREE WordOps - WordPress site and server administration which already offers nginx configuration option (--wpsc) for WP Super Cache and other cache plugins.

Resources