Re: Numinix Blog Embedding Issues/Questions
[QUOTE=mutinyzoo;1227065]Have been using the wonderful Numinix integration tutorial/method on a couple of blogs for years (thank you very much), but there is an issue with the Twenty Thirteen theme: PHP Warning:
Code:
call_user_func_array() expects parameter 1 to be a valid callback, function ‘stats_template_redirect’ not found or invalid function name in /path/to/wp-includes/plugin.php on line 406.
it occurs when i add any widget into the seconday widget area.
Following is the code on the numinix wordpress_page.php file where the stats_template_redirect call occurs and where I'm betting the answer may be found.
Code:
if ($_GET['main_page'] == 'blog') {
define('WP_USE_THEMES', false);
require('steel/wp-blog-header.php'); // edit this with relative path to wordpress from store root
add_action( 'wp_footer', 'stats_template_redirect', 1 );
}
If anybody still has this problem, it's trying to find the Jetpack plugin. Looks like something was added for Jetpack to work. But if you don't have Jetpack installed it causes an error.
Installing the Jetpack plugin stopped the errors for me. :smile:
Re: Numinix Blog Embedding Issues/Questions
Hi all,
I have a question I have followed the directions and have my blog embedded with in my store. I have been able to do everything except make the blog full width have tried editing with firebug and it keeps reverting. I have been able to get rid of footer and sidebar just this last part having issues with. Blog site is www.thedragonskeep.net/blog My second isssue is the blog css is taking over my template on blog page only, but I can't figure out where to edit to get the blog page header and footer to look like the rest of pages on www.thedragonskeep.net. Bare with me knew to css and html but I have made it this far so really would like to learn to do this. I am running zencart 1.5.5a.
Thanks
Sandria
Re: Numinix Blog Embedding Issues/Questions
Ok figured out full width. Now just have to get css fixed. I really can't believe how much I have learned.
Thanks
Sandria
Re: Numinix Blog Embedding Issues/Questions
[QUOTE=Tim Ware;1274416]
Quote:
Originally Posted by
mutinyzoo
Have been using the wonderful Numinix integration tutorial/method on a couple of blogs for years (thank you very much), but there is an issue with the Twenty Thirteen theme: PHP Warning:
Code:
call_user_func_array() expects parameter 1 to be a valid callback, function ‘stats_template_redirect’ not found or invalid function name in /path/to/wp-includes/plugin.php on line 406.
it occurs when i add any widget into the seconday widget area.
Following is the code on the numinix wordpress_page.php file where the stats_template_redirect call occurs and where I'm betting the answer may be found.
Code:
if ($_GET['main_page'] == 'blog') {
define('WP_USE_THEMES', false);
require('steel/wp-blog-header.php'); // edit this with relative path to wordpress from store root
add_action( 'wp_footer', 'stats_template_redirect', 1 );
}
If anybody still has this problem, it's trying to find the Jetpack plugin. Looks like something was added for Jetpack to work. But if you don't have Jetpack installed it causes an error.
Installing the Jetpack plugin stopped the errors for me. :smile:
Thank you for the solution to this error and for sharing it with the community!
We've updated the package and the contents of that file now read:
PHP Code:
<?php
// turn off WordPress themes and include the WordPress core:
if ($_GET['main_page'] == FILENAME_BLOG) {
define('WP_USE_THEMES', false);
require('wordpress/wp-blog-header.php'); // edit this with relative path to wordpress from store root
if (function_exists('stats_template_redirect')) {
add_action( 'wp_footer', 'stats_template_redirect', 1 );
}
}
?>
Re: Numinix Blog Embedding Issues/Questions
Tested it with ZC 1.5.5 and it works well. Has anybody an idea how to make the domain http://blog.mydomain.com instead of http://mydomain.com/blog
I am kinda stuck with the rewrite rule on this.
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
dachilla
Do you mean you've already created the subdomain and now you want to redirect, or is your question "how do I create a subdomain?" ?
Re: Numinix Blog Embedding Issues/Questions
Quote:
Originally Posted by
picandnix
Do you mean you've already created the subdomain and now you want to redirect, or is your question "how do I create a subdomain?" ?
Subdomain is already created, I need to know how to redirect it with hataccess.
Just want to know how I have to rewrite this part so that it gores to http://blog.domain.com instead of http://domain.com/blog
Quote:
In your domain root, open .htaccess and add the following:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^blog(.*)$ /index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
This will rewrite your blog page url to domain.com/blog/. If this causes a server error, try changing the last line above to:
RewriteRule ^blog(.*)$ /index.php?main_page=blog$1 [L]
Note: If you want wordpress to load as a different URL, change the first instance of “blog” in the RewriteRule to whatever you set as the Blog Address in step 3 of the Preparing WordPress section above.
Any help is appreciated.
Re: Numinix Blog Embedding Issues/Questions