Links about First Load Web App on IIS

If you used IIS server or Windows Hosting, you might know an annoying problem that if your website not be visited for while, the next visiting needs longer loading time, you have to wait up to over 60 seconds if your hosting is not good. This is because IIS has a feature for low traffic websites it recycles unused worker processes.

Continue reading “Links about First Load Web App on IIS”


WordPress Twenty Eleven CSS Width

Twenty Eleven WordPress theme is another popular free theme which was released by WordPress team. We can adjust the screen by change css file.

Here is a requirement about adjust width, for example, we need to increase the width of right sidebar (include Widget width), and decrease the distance between content and right side widget, also, decrease the left margin of content, and right margin of widgets. also, if we will, we can increase the width of content.

Continue reading “WordPress Twenty Eleven CSS Width”


WordPress Top Menu Not Work In Child Theme ?

In newer versions of WordPress themes, there is a navigation item called menu. User can assign pages or categories to menus. Also, in newer WordPress version, the menu provide dropdown style and mouse hover with show / hide features.

Actually the menu belongs to theme. so we know if we got any issue on menu, we normallby check go to check the theme model.

We met a problem when we tried a child theme based on the Twenty Twelve theme. By now the most popular free WordPress theme is still their official Twenty Twelve theme.( http://wordpress.org/themes/ ) since its great features.

image

When we used the theme itself, we created the menus like the following one:

image

However, when we added a child theme of Twenty Twelve, we found the menus disappear but just default menu with Home and About there.

We firstly go to check any theme, we spent over 1 hour but got nothing.

Finally, we realized we should go back to Admin Dashboard to check the settings about theme or menu. Yes! we realized what we made mistake before:

 we must change the settings again !

Just in Admin screen, go to Appearance > Customize

image

Set back the Primary Menu :

image

Save the settings, that’s it !

Update WordPress from 3.7.1 to 3.8

WordPress released their newest version 3.8 fast, WordPress users felt they just used 3.7.1 shortly before. Actually WordPress 3.8 is for the times of mobile world, They have to push the new version fast because the IT world changed fast. Mobile system is more and more popular, looks like some day the mobile platform will replace the traditional platforms such as desktop and laptop, but this is not the topic we are going to talk, let us do the updating work.

Continue reading “Update WordPress from 3.7.1 to 3.8”

Single Article Not Shown After Moving WordPress Site

If you move your WordPress site to a new file directory only (not moving hosting), you might be able to see your new web home page is OK, but all the single articles no more shown if you click article title from home page.

You will get NOT FOUND error message.

The one reason is very possible: You just need to change Permalinks in Admin panel, and click Save button. you will see all your articles work now.

Continue reading “Single Article Not Shown After Moving WordPress Site”

WordPress Arras Theme Widget Fatal Error When Update

When we tried to update a WordPress blog website which from version 3.0.1 to version 3.7.1, we got trouble – a Fatal error.

Fatal error: Call to undefined method Arras_Widget_Tag_Cloud::WP_Widget_Tag_Cloud() in /home/….xxx.com/xxxxxx/wp-content/themes/arras/library/widgets.php on line 404

You can see that we had a mistake when we updated the WordPress site, we did not change the theme to default theme, but still using a 3rd party theme named Arras. Obviously the error caused by Arras theme.

Continue reading “WordPress Arras Theme Widget Fatal Error When Update”

Upgrade WordPress Got Trouble: Admin Blank Page

We tried to upgrade a WordPress site from 2.8.x (maybe 2.8.4) to 3.1.3 with upgrade automatically.

Before we upgrade, we have deactivate all plugins. But after we click “upgrade automatically”, first we got a error message screen:

“Briefly unavailable for scheduled maintenance. Check back in a minute.”

After some while, we found our site can be visited without problem, but when we try to login Admin, the Admin show a complete blank page.

wpUpgradefail00_0

We searched related information in the internet, most of cases indicates the temporary file named .maintenance in the blog base folder, if you delete this file, your blog should be ok then.

Note: You have to make sure your FTP tool allows display hidden files, otherwise you can not see the .maintenance file.

Just check WordPress official help information about this:

How to clear the "Briefly unavailable for scheduled maintenance" message after doing automatic upgrade?

As part of the automatic upgrade WordPress places a file named .maintenance in the blog base folder (folder that contains the wp-admin folder). If that file exists, then vistors will see the message Briefly unavailable for scheduled maintenance. Check back in a minute.

To stop that message from being displayed to vistors, just delete the .maintenance file. The automatic upgrade should be executed again, just in case it failed.

However, for our case, we did not need to remove .maintenance file, and the site could be visited ok after short while. But the new problem was: The Admin page became a blank page.

Then we searched info about Admin blank page and spent long time, we tried all solutions which we could find, for example:

1: Deactivate all plugins without admin login, please followed WordPress help information like the following:

via FTP

Create an empty plugins folder
Via FTP or your host’s control panel, navigate to the wp-contents folder (directory)
Via FTP or your host’s control panel, rename the folder "plugins" to "plugins.hold"
Via FTP or your host’s control panel, create new folder called "plugins"
Login to your WordPress administration menus
Via FTP or your host’s control panel, delete the empty "plugins" you previous created
Via FTP or your host’s control panel, rename "plugins.hold" back to "plugins"

2: Remove extra space at the end of wp-config file, and also at the beginning of the file;

3: Remove extra space at the end and beginning of a file named “functions.php”. the file located in theme folder, some people said located in wp-includes folder.

But anyway, what ever we changed which files, we still ONLY got an blank Admin page.

4: Later we found a case from internet: If want to deactivate all plugins, sometimes IT DOESN’T WORK if only change plugins folder name, but need to change database:

Then we go back to WordPress help information here and choose the “phpMyAdmin” way. wen to our site’s online database control panel, and use phpMyAdmin to change data in datatable wp_options table.

However, we found the data in the column option_value field has been already “a:0:{}”, which means no plugin activated now. Because before we started to upgrade, we have already deactivated all plugins that we have installed.

So, our case is really different with above all cases, and different with most of cases which descripted in internet.

So what’s wrong with our WordPress site?

Finally we found our solution and upgraded successfully ! please read the procedure which we did:

We think since our site still can be visited without any problem, and we have known all known solutions in internet are different with our case. so we’d better think about the exact reason for our case;

Our site could be visited all the time but only admin was not correct, so we thought why we did not just replace Admin folder with backup folder ? (so now you know the backup is so important before you upgrade your WordPress site).

1: Then we change the wp-admin foler name to wp-admin_bak, use FTP tool to upload our backup wp-admin folder to online site.

Bingo! now we found our Admin can be accessed and can be logged in ! and also our site still visit correctly.

2: The dashboard still show the 2.8.4 version and gives information to upgrade. And also we made sure all plugins were deactivated.

But, this time we did another thing: we changed theme to default theme which WordPress provided. Not sure this step is required or not. but we just did it.

3: We used automatically upgraded again. … But, We still got the same error:

“Briefly unavailable for scheduled maintenance. Check back in a minute.”

4: OK, we did not have other choice, since it asked that we should at least wait a minute, then why we do not wait? Then we left away to read news, to watch TV …

5: About 30 minutes later we came back, the error screen was still there, when we tried to refresh screen, it asked if refresh, something might have be restarted, but we were using Chrome browser, we think the prompt message should be from Chrome browser. Then we changed the URL in browser to www.oursitesdomain.com/wp-admin and click enter key…

7: Bingo! Now we got another message (no more a blank screen !! ) which indicated the upgraded process did not upgrade database successfully (or completely, we can not remember exact message.) Do you want to upgrade database ?

Yes, sure! We selected upgrading database automatically.

8: Then finally we got a dashboard screen like the following:

wpUpgradefail00

You can see the WordPress version is already the newest version, but just there was a message on the top indicated: An automated WordPress update has failed to complete, please attempt the update again now. We then clicked the update again now link. Then everything showing OK finally.

We got our site back. This is our case, it is really different with most of known case in the internet. We were lucky.

Let us remind you again: DO backup files and database before you upgrade anything !

Updated to WordPress 3.1.3

We have used WordPress 2.7.1 long time. It was stable because we do not have extra features needed. We updated to WordPress 3.1.3 just because we do not want to miss too much but should follow WordPress new version.

Most of stuff looks OK after we updated, the only one problem was the database backup plugin did not work well, but it was not big trouble, we just tried to update the plugin first, and it still could not work, we then deleted it and install again, then everything is OK.

wordpress-download_thumb

Suffusion theme skills

We posted “Basic Settings of WordPress Suffusion theme”. Now we will share some skills which we learnt. Maybe they are simple, but maybe you don’t know.

1: Header Background Image height ?

You might have added a image for your header background, but you meet a trouble that you have already set the image height, but the header part looks like not work well, or maybe you see the are more space under your header.

All the height trouble come from you actually did not set a correct height for your header background image height.

Please read their description for Height of the Header image:

… you can change this setting if you have a header image needs to fit. Note that both above and below the header is 15px of padding, making the effective height of the header 85px.

suffusion08

So if your header image is 55px high, actually your header section height will be 55px + 15px + 15px = 85px, so here you should fill a number which is your exact image height minus 30px, or even you can minus more so that you can get a perfect header height and space between header and main content.

2: Problem when modify Single.php

If you want to change something in Single.php file, and if you want to modify this file in WordPress management dashboard, you will meet a problem which you must be confused by it: you changed something, but you will never get the correct result.

The reason is this Single.php file which you are modifying is NOT the Single.php which you want to modify. this file you are working is located in the folder “now-reading” but not in the folder suffusion.

suffusion09

The simple solution is that just cut off “now-reading/” from URL which in the top URL place in your web browser, then click Enter, you will see the exact Single.php file which you want.


3: Add a “XX Views” for each post:

Want a views number for each post like following ?

suffusion10

Install a view plugin which is able to enable the function the_views(), such as the plugin WP-PostViews.

Go to Suffusion theme folder and find a file named “actions.php”, or you can find it in your WordPress admin panel Editor.

open this file, located a function “suffusion_post_footer()”, find a place which you want and insert the following code:

   1:  <!-- my code begin -->
   2:  <span><?php if(function_exists('the_views')) { the_views(); } ?></span>
   3:  <!-- my code end –>



4: Insert Google AdSense between excerpt posts in Home page:

Insert a AdSense block between post block in Home page just like below:

suffusion11

Find layout-blog.php file and open it, locate the following code:

   1:  global $post;
   2:  if (have_posts()) {
   3:      $full_content_post_counter = 0;
   4:      $full_post_count = suffusion_get_full_content_count();
   5:      while (have_posts()) {
   6:          the_post();

Followed the above code, insert your AdSense code block, but you have to add php script also, check following sample code:

   1:  //My code start
   2:  if ($wp_query->current_post == 1 ) {
   3:  ?>
   4:   
   5:  <!-- your AdSense code here -->
   6:   
   7:  <?php
   8:  }
   9:  //My code End

Basic Settings of WordPress Suffusion theme

Suffusion theme is one of popular WordPress themes, it is much more robust than other free WordPress themes. And also, it actually is not a single theme, it provides multiple themes.  However, you will feel hard to use it if you never used it before.

I am a new Suffusion user too. So let me record some simple settings which let me recall latter:

1: Select a theme skin:

I am using Suffusion 3.7.8, Suffusion provides 19 different skins in this version. So choose one which you like, Actually the default one in more popular and nice.

suffusion00 

2: Choose a Sidebar Style:

Go to “Sidebar Configuration” and “Sidebar Layout”:

suffusion01

Scroll down the screen, you will see “How many Sidebar” section, here you can set a single sidebar or two sidebars in you blog, and set the sidebar’s location on the page, for example: both two sidebars are on right side,  or on left and right…etc..

suffusion12

3: Select a template:

Set the template due to your blog page layout, for example, if you choose double right sidebars, you should set something for double right sidebars in here.

suffusion00_1

4: Adjust Header and Description alignment:

Go back to “Theme Skinning” menu and select “Header” tab:

suffusion02

If you want your settings work, please make sure you have changed default option to custom option:suffusion03

Save it and your settings will work.

5: Set only excerpt shown on Home page:

Go to “Other Graphical Elements” and choose “Layout: Except/list/Tile/Full” tab. change each option from “Display full content” to “Display excerpts”

suffusion04

6: Top Menu:

By default Suffusion theme hidden top menu, change settings as following for showing top menus:

Select menu “Other Graphical Elements”, click “Top Navigation Bar”:

suffusion05

Scroll down to Show Home Page section, select option to show Home menu if you want.

suffusion06

If you want to show other page as menu, select options as following settings.

suffusion07