Forums / All Other Contributions/Addons / News & Article Management [Support]

News & Article Management [Support]

Views: 135,518

Results 441 to 451 of 451
23 Mar 2018, 2:27 PM
#441
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

News & Article Management [Support]

targetmarts:

Hello,i used 1.5.4 with image handler 5.0 and zen lightbox,installed the rss 2.1.5/6 or 2.4.2,but when i set Generate Products Images "true",then it display error:
[23-Mar-2018 02:33:33 UTC] PHP Fatal error: Uncaught Error: Call to a member function notify() on null in /home/getappreal/public_html/includes/modules/abagon/main_product_image.php:19
Stack trace:
#0 /home/getappreal/public_html/includes/modules/pages/rss_feed/header_php.php(428): require()
#1 /home/getappreal/public_html/includes/modules/pages/rss_feed/header_php.php(369): zen_rss_products('SELECT DISTINCT...', false)
#2 /home/getappreal/public_html/index.php(36): require('/home/getapprea...')
#3 {main}
thrown in /home/getappreal/public_html/includes/modules/abagon/main_product_image.php on line 19

and when set "fales"
it work fine.
Why
That's because this plugin is including the updated main_product_image.php module in a function context, so that the $zco_notifier variable isn't visible.

I'll note (and correct) this behavior in the IH-5 plugin). To correct the issue that you're having, you'll need to edit both /includes/modules/abagon/main_product_image.php and /includes/modules/abagon/additional_images.php, changing all occurrences of

$zco_notifier->

to

$GLOBALS['zco_notifier']->
24 Mar 2018, 1:21 PM
#442
targetmarts avatar

targetmarts

Zen Follower

Join Date:
Jan 2018
Posts:
122
Plugin Contributions:
0

Re: News & Article Management [Support]

lat9:

That's because this plugin is including the updated main_product_image.php module in a function context, so that the $zco_notifier variable isn't visible.

I'll note (and correct) this behavior in the IH-5 plugin). To correct the issue that you're having, you'll need to edit both /includes/modules/abagon/main_product_image.php and /includes/modules/abagon/additional_images.php, changing all occurrences of

$zco_notifier->

> to
> ```
$GLOBALS['zco_notifier']->

Ok,it work now,thanks
by the way,i used news and other plus,i checked the rss in my site https://www.targetmarts.com,it only work for new_products
upcoming
featured
specials
products
categories.
it don't work for other page as manufacturers_all / manufacturers/ news/ etc.
so how to work for those page?
Thanks again

24 Mar 2018, 1:45 PM
#443
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: News & Article Management [Support]

Would you please elaborate on "it don't work"? What is **it **and what doesn't work ... how is the output different from what you expect?

25 Mar 2018, 12:42 AM
#444
targetmarts avatar

targetmarts

Zen Follower

Join Date:
Jan 2018
Posts:
122
Plugin Contributions:
0

Re: News & Article Management [Support]

lat9:

Would you please elaborate on "it don't work"? What is **it **and what doesn't work ... how is the output different from what you expect?

it only work for the page as:
Home
Featured Products
Specials
New Products
All Products ...

when click rss in other page as http://www.targetmarts.com/news_archive display:
WARNING: An Error occurred, please refresh the page and try again. Fatal error: 1146:Table 'i3424817_zc1.TABLE_NEWS_ARTICLES' doesn't exist :: SELECT n.article_id, na.author_name, na.author_email, nt.news_article_name, nt.news_article_text, nt.news_article_shorttext, n.news_image, nt.news_image_text, n.news_date_published FROM TABLE_NEWS_ARTICLES n LEFT JOIN TABLE_NEWS_ARTICLES_TEXT nt ON (n.article_id=nt.article_id AND nt.language_id=1), TABLE_NEWS_AUTHORS na WHERE n.authors_id = na.authors_id AND n.news_status = 1 AND n.news_date_published <= NOW() AND n.news_date_published >= DATE_SUB(NOW(), INTERVAL 0 DAY) ORDER BY news_date_published DESC, n.sort_order ==> (as called by) /home/getappreal/public_html/includes/modules/pages/rss_feed/header_php.php on line 202 <== in /home/getappreal/public_html/includes/classes/db/mysql/query_factory.php on line 155 Call Stack: 0.0001 366704 1. {main}() /home/getappreal/public_html/index.php:0 0.0492 1903976 2. require('/home/getappreal/public_html/includes/modules/pages/rss_feed/header_php.php') /home/getappreal/public_html/index.php:36 0.0505 1931368 3. queryFactory->Execute() /home/getappreal/public_html/includes/modules/pages/rss_feed/header_php.php:202 0.0508 1932368 4. queryFactory->set_error() /home/getappreal/public_html/includes/classes/db/mysql/query_factory.php:262 0.0508 1932368 5. queryFactory->show_error() /home/getappreal/public_html/includes/classes/db/mysql/query_factory.php:132 0.0508 1937448 6. trigger_error() /home/getappreal/public_html/includes/classes/db/mysql/query_factory.php:155

in page http://www.targetmarts.com/more_news?news_id=6 rss display new_products

anyway,the rss display new_products in all other page .

and the full fuction rss as https://www.zen-cart.cn/ ,there is very good

15 May 2018, 1:59 AM
#445
targetmarts avatar

targetmarts

Zen Follower

Join Date:
Jan 2018
Posts:
122
Plugin Contributions:
0

Re: News & Article Management [Support]

6 Aug 2018, 8:08 PM
#446
gamethrall avatar

gamethrall

New Zenner

Join Date:
Aug 2016
Posts:
20
Plugin Contributions:
0

Re: News & Article Management [Support]

Hi folks!

Zen Cart: v1.5.5e

I got everything installed (I think) and I ran the SQL scripts (took some finagling). I've got 2 issues:

  1. I enabled CKeditor. When I try to edit or add content to a new article, it looks like this when I try to submit:
    Attachment 18004.
    It won't show the content at all. For "fun" I entered some text in the "news_article_shorttext" field and that shows up when I try to edit it in the article. When I try to submit it, it goes back to the image above.
  2. When I view a news article, I see the subject, the byline, and then it skips the article text entirely and goes to the HR and then the articleLinkList. Attachment 18005.

If you want to see it in action, it's here: http://www.sanefcs.com/catalog/?main_page=news. If you check out the page source, you can see where the article text is being skipped. I don't know PHP well enough to know what's wrong. The best I can do is find where the articleText function is defined, but I can't understand what it's doing.

Any thoughts?

21 Nov 2019, 5:34 PM
#447
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
858
Plugin Contributions:
0

Re: News & Article Management [Support]

Hi All,
I'm running this mod on ZC1.5.5e. The trouble I've been having is that quotes (") and other characters are being converted to &quote;... etc... This also happens with some configuration options for other mods. This does not happen with order comments, product entry etc. I've never been able to get to the bottom of it. Now, it's driving me nuts.

Any help is greatly appreciated.

Thank You,
John

21 Nov 2019, 6:46 PM
#448
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: News & Article Management [Support]

The characters are being 'sanitized' by the Zen Cart 1.5.5a+ admin's processing. If you were running zc156 or later, I'd suggest the updated version of the plugin.

I'm in the middle of some stuff right now, but either later today or tomorrow I'll post an admin/includes/extra_datafiles 'solution' to that issue.

21 Nov 2019, 7:49 PM
#449
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
858
Plugin Contributions:
0

Re: News & Article Management [Support]

Hey Lat. That would be great. Thank you! I think I upgraded to 1.5.5 from 1.5.1 in the 2017 time frame. The news module worked fine before then. Like i said, there are also a few other mods who act up this way when changing config values. I'll look to see if I can fix them after I get a look at your extra_datafiles solution.

Thanks again,
John

21 Nov 2019, 8:10 PM
#450
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: News & Article Management [Support]

John, I just took a peek at v2.2.1 of the News Box Manager - v2 (https://www.zen-cart.com/downloads.php?do=file&id=1968) noting that it's got its own support thread. That version of the plugin includes the required sanitization script for zc155a and later.

21 Nov 2019, 9:13 PM
#451
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
858
Plugin Contributions:
0

Re: News & Article Management [Support]

I've had to do this before! I'll have to do it some more. lol. Awesome. Thank you.

Best,
John