Forums / All Other Contributions/Addons / Numinix Blog Embedding Issues/Questions

Numinix Blog Embedding Issues/Questions

Started by yiannis on 5 Aug 2011, 5:08 PM · Views: 11,160

Results 41 to 58 of 58
17 Sep 2013, 1:19 PM
#41
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Numinix Blog Embedding Issues/Questions

fakeDecoy:

I haven't touched the parent theme stylesheet. But I'll put my styles into the child theme stylesheet and remove the blog.css from zc if that will help avoid problems in the future.
I think I misread/misunderstood what you did..

So you had NOTHING in the child stylesheet, the parent stylesheet was left in it's default state, and then you had your modified blog.css in your shop's stylesheet folder.. Correct????

If that's the case, and EVERYTHING worked, then put things back the way you had them.. that's just fine..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

17 Sep 2013, 1:33 PM
#42
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Numinix Blog Embedding Issues/Questions

DivaVocals:

I think I misread/misunderstood what you did..

So you had NOTHING in the child stylesheet, the parent stylesheet was left in it's default state, and then you had your modified blog.css in your shop's stylesheet folder.. Correct????

If that's the case, and EVERYTHING worked, then put things back the way you had them.. that's just fine..

Right. I haven't messed with it yet, so I think that's it, thanks!

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

17 Sep 2013, 1:40 PM
#43
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Numinix Blog Embedding Issues/Questions

fakeDecoy:

Right. I haven't messed with it yet, so I think that's it, thanks!

Sure.. you did remove the duplicate directive though right????????

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

17 Sep 2013, 1:43 PM
#44
fakedecoy avatar

fakedecoy

Zen Follower

Join Date:
Jul 2006
Posts:
309
Plugin Contributions:
0

Re: Numinix Blog Embedding Issues/Questions

Yep, did that.

Adamant Barbell - Home & commercial gym equipment - Since 2007
www.adamantbarbell.com

17 Sep 2013, 1:55 PM
#45
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Numinix Blog Embedding Issues/Questions

fakeDecoy:

Yep, did that.

Great.. then you are all done..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

19 Nov 2013, 4:35 PM
#46
mutinyzoo avatar

mutinyzoo

New Zenner

Join Date:
Mar 2011
Location:
Pensacola, FL
Posts:
88
Plugin Contributions:
2

Re: Numinix Blog Embedding Issues/Questions

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:

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.

 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 );
 }

Any insight quite welcome. In the meantime using the twenty thirteen theme without secondary widget area (which takes up right column space anyway)

19 Nov 2013, 4:43 PM
#47
mutinyzoo avatar

mutinyzoo

New Zenner

Join Date:
Mar 2011
Location:
Pensacola, FL
Posts:
88
Plugin Contributions:
2

Re: Numinix Blog Embedding Issues/Questions

Combining WOZ sideboxes only module and/or combining it with the numinix solution.

I recently submitted an updated version of the module, the tpl_wp_XXX pages to which are added one line that seemed to be needed to close a DIV. Maybe this is only necessary when using the numinix method.

  $content .= '</div>';

below

  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
  $content .= '<ul>'.$out.'</ul>';

The extra-configures/wordpress_config.php file also needed to be changed. A 404 file not found error was occurring on the blog pages, which seemed to be due to something in here:
```
define('WP_USE_THEMES', true);
$wp_did_header = true;
require_once(ABSPATH.'wp-config.php');


It worked fine when that code was removed, but there was a sidebox error on the NON-blog pages.

So I updated the code on the extra-configures/wordpress_config.php page to: 

define ('ABSPATH','/path/to/my/blog/');

$host = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
$its_blog_page = $_SERVER['SERVER_NAME'] . "/blog";

if ((strpos($host, $its_blog_page) !== false) && (file_exists(ABSPATH.'wp-config.php'))){
$woz_install=1;
}else{
$woz_install=1;
define('WP_USE_THEMES', true);
$wp_did_header = true;
require_once(ABSPATH.'wp-config.php');
}


which simply checks the current URL to see if it contains the numinix-style path to the blog (mydomain.com/blog) and loads ONLY the $woz_install=1; line, otherwise for any other page it loads also the WP THEME, wp Header and WP config lines.

I imagine there as a much more elegant way to do this and I would love to see if if anyone's inspired to share. Otherwise, hope this is useful.

DivaVocals has mentioned that the blogroll and wp_sidebox are no longer supported by wordpress coding.

Also - am having a problem because the above method only works when the URL for the blog is formatted domain.com/blog and NOT domain.com/index.php?main_page=blog.

So - am experimenting with adding a third variable: 

$host = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
$its_blog_page = $_SERVER['SERVER_NAME'] . "/blog";
$its_blog_page_2 = $_SERVER['SERVER_NAME'] . "/index.php?main_page=blog";

if ((strpos($host, $its_blog_page) !== false) && (file_exists(ABSPATH.'wp-config.php'))){
$woz_install=1;
}elseif ((strpos($host, $its_blog_page_2) !== false) && (file_exists(ABSPATH.'wp-config.php'))) {
$woz_install=1;
}else{
$woz_install=1;
define('WP_USE_THEMES', true);
$wp_did_header = true;
require_once(ABSPATH.'wp-config.php');
}

7 Jul 2014, 9:49 PM
#48
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,779
Plugin Contributions:
2

Re: Numinix Blog Embedding Issues/Questions

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:

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.
>  
>  ```
  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 );
  }

Any insight quite welcome. In the meantime using the twenty thirteen theme without secondary widget area (which takes up right column space anyway)

Anyone know of a solution for this error log as described by Mutinyzoo please?

15 Jul 2014, 4:56 PM
#49
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,779
Plugin Contributions:
2

Re: Numinix Blog Embedding Issues/Questions

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:

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.
>  
>  ```
  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 );
  }

Any insight quite welcome. In the meantime using the twenty thirteen theme without secondary widget area (which takes up right column space anyway)

Bump... Anyone have any insight into this error that gets logged please? I have the same issue.

17 Jul 2014, 2:51 PM
#50
stitchnkitty avatar

stitchnkitty

Totally Zenned

Join Date:
Jun 2009
Location:
Des Moines, Iowa USA
Posts:
618
Plugin Contributions:
0

Re: Numinix Blog Embedding Issues/Questions

1.5.1

I guess I am not as far along on the installation as the rest on this thread...
Installed Wordpress in a subfolder blog
I have created the child theme as instructed with the suggested style.css

some q? that are fuzzy -

Step 3:

Next, save a copy of your theme’s style.css file and any images that are referenced in the style sheet to a place on your desktop to later be uploaded to your Zen Cart installation.

Rename style.css on your desktop to blog.css and open the file and change all image URL paths to match the URLs found in your Zen Cart style sheets.
below is the suggested style.css as provided on the Numinix instructions. there are no images???

Below I have a copy of the style that will be renamed to blog.css Am I missing something? TIA

/*
Theme Name: Twenty Twelve Stitch
Theme URI: http://www.stitchnframeonline.com/blog/twenty-twelve-stitch/
Description: Twenty Fourteen Child Theme
Author: Stitch 'N Frame
Author URI: http://www.stitchnframeonline.com
Template: twentytwelve
Version: 1.0.0
Tags: needleart, needlework, cross stitch, needlepoint, goldwork, hardanger,
Text Domain: twenty-fourteen-child
*/

@import url("www.stitchnframeonline.com/blog/wp-content/themes/twentytwelve-stitch/style.css");

/* =Theme customization starts here
-------------------------------------------------------------- */

25 Feb 2015, 2:55 AM
#51
tim_ware avatar

tim_ware

New Zenner

Join Date:
Dec 2007
Posts:
25
Plugin Contributions:
0

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:

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.

 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:

https://www.mitkinsprojects.com where online projects come to life..

16 Oct 2016, 1:08 PM
#52
amethyst_fairy avatar

amethyst_fairy

Zen Follower

Join Date:
Feb 2016
Location:
Salem, NH
Posts:
103
Plugin Contributions:
0

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 https://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 https://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

16 Oct 2016, 1:16 PM
#53
amethyst_fairy avatar

amethyst_fairy

Zen Follower

Join Date:
Feb 2016
Location:
Salem, NH
Posts:
103
Plugin Contributions:
0

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

23 Dec 2016, 11:18 PM
#54
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,568
Plugin Contributions:
59

Re: Numinix Blog Embedding Issues/Questions

[QUOTE=Tim Ware;1274416]> 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:

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.
>  
>  ```
  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
  // 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 );
    }
  }
?>
26 Jun 2017, 2:45 PM
#55
dachilla avatar

dachilla

New Zenner

Join Date:
Feb 2006
Posts:
66
Plugin Contributions:
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.

27 Jun 2017, 12:46 PM
#56
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,779
Plugin Contributions:
2

Re: Numinix Blog Embedding Issues/Questions

dachilla:

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.

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?" ?

27 Jun 2017, 2:10 PM
#57
dachilla avatar

dachilla

New Zenner

Join Date:
Feb 2006
Posts:
66
Plugin Contributions:
1

Re: Numinix Blog Embedding Issues/Questions

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

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.

1 Jul 2017, 5:01 AM
#58
dachilla avatar

dachilla

New Zenner

Join Date:
Feb 2006
Posts:
66
Plugin Contributions:
1

Re: Numinix Blog Embedding Issues/Questions

anyone?