「未分類」カテゴリーアーカイブ

wptest work(2)

1. Refine templates as simple as possible.: Consider the template hierarchy.

1.1. Edit “page.php” and “single.php” : exclude date, author and comments.

1.2. Prepare “footer-japantourguide.php”.

<?php wp_footer(); ?>  : makes the main_navi sticky.

2. How to display current taxonomy name:

<?php
$term = get_term_by( ‘slug’, get_query_var( ‘term’ ), get_query_var( ‘taxonomy’ ) );
//echo $term->name; // will show the name
//echo $term->slug; // will show the slug?>
<div <?php post_class(‘contents’); ?>> <h3><?php echo $term->name;?></h3> </div>

 

wptest work

1. footer related:

1.1. Need footer-related.css, aux2.css, aux3.css to complete ‘japantourguide’ footer.

1.2. Inclusion of aux3.css makes “Topics” page inappropriate. But aux3.css is also charming for title part in many pages.

1.3. Inclusion of <?php wp_footer(); ?> into footer makes sticky main_navi_menu. Amazing!

wptest again

1. I messed up the links while using searchreplacedb2, while I didn’t backup database. Thus I had to restart wptest.

2. Activate plugin Database Reset, then it will appear in admin-panel: tools: select all table, check “Reactivate plugins after reset”.

3. Remove *.* wp-content/uploads. as root.

4.Settings->media-settings:uncheck “Organize my uploads into month- and year-based folders”.

5. Import: tokyokamakuraguidedtour.wordpress.2014-3-14.org.xml, while checking “import attachements”.

6. Failed to import many; I realized admin-panel shows no custom-post entries.

7. Redo above 2.,3.,4;

8. Set custom posts and taxonomy; This is indispensable.

custom post UI:

9. Step 5.

10. Importer says “All done”.

11. Now correct links.

11.1.  Backup database with phpmyadmin: export tables related to wptest.

(database ->wpdb->export->詳細->select tables-> 実行; Stored:

11.2. Copy searchreplacedb2.php to wptest root, and rename it knsecret.php.

Visit it.

11.3. Search “japantourguide.chips.jp/”, “replace with 192.168.0.16/wptest/”;

search “japantourguide.net/”, replace with “192.168.0.16/wptest/”;

looks like worked. Delete “knsecret.php”.

11.4 Change theme to adventure-child, munus, etc.

 

 

 

Strict Standards etc. in “adventure”

Theme “adventure” is activated.

Strict Standards: Only variables should be passed by reference in /var/www/wptest/wp-content/themes/adventure/functions.php on line 56

Strict Standards: Only variables should be assigned by reference in /var/www/wptest/wp-content/themes/adventure/functions.php on line 56

Strict Standards: Only variables should be passed by reference in /var/www/wptest/wp-content/themes/adventure/functions.php on line 56

Strict Standards: Only variables should be assigned by reference in /var/www/wptest/wp-content/themes/adventure/functions.php on line 56
no comments yet
.

Without any files from japantourguide, almost every page is displayed,although every page has the above message.  I can edit Home to include the media.

I fixed the functions.php somehow, but seems too much.  I dropped &.

Strict Standards:… message gone.

In this situation, adventure-child was activated.

Thereappears another notice in adventure/functions.php: line 145: undefined index.

I fixed it back; line 145 notice remains, but line 56 issue has gone, why?

Anyhow, I cannot change the background image at the moment.

I remember it starts pretty early when I cleared wptest.  I may have done some wrong procedure in installing or activating adventure and adventure-child.

I give up and restarts again from the beginning.

 

 

 

 

japantourguide files:

In twenty thirteen-child:

single.php:  designed only for terminal file presentation of “Popular sites in Tokyo”:  weird

default display format: content.php is working for the middle stage of pop_sites_in_tokyo.

 

 

set apache2 to include mod_rewrite and related

/etc/apache2:

a2enmod rewrite;

/etc/init.d/apache2 force-reload;

service apache2 restart;

——————————————————

.htaccess file is present at the wp root directory ( var/www/norikoshop/) with almost no content.

rewrite it:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /norikoshop/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /norikoshop/index.php [L]
</IfModule>
# END WordPres

change permalink in 192.168.0.16/norikoshop doesn’t work.

Now clean the web: (Clean URLs with Apache 2 on Debian: on web)

/etc/apache2/sites-available;

cp default default org;

gksudo gedit default;

Directory /var/www/
Options Indexes FollowSymLinks MultiViews
AllowOverride None

to

Directory /var/www/
Options Indexes FollowSymLinks MultiViews
AllowOverride All

sudo a2ensite default;

sudo service apache2 reload;

change permalink in  192.168.0.16/norikoshop/   successfully worked.

 

WP migration study (2)

On  wptest:

0. staus: plugins:  akismet;  themes: designfolio(running),twentythirteen, twentytwelve;  database table_prefix=’wptest_’

1.install WordPress Database Reset

2.Reset the database using this plugin.

 

migration study (1)

On  norikoEnWP:

0. staus: plugins:  akismet;  themes: twentythirteen(running), twentytwelve;  database table_prefix=’wpnoriko_’

1.phpMyAdmin:   all the wpnoriko_ tabels : 空にする(truncate).  size は0にならないけれど、行数は0になる。

2. cannot login: Error establishing a database connection, cannot open the homepage either.

3. I suppose I did too much. For the time, I give up rescue this site.