Article Manager v1.0
#1381
Posted 16 February 2010, 21:54
Notice: Undefined variable: topic_depth in /home/xxxx/public_html/includes/boxes/articles.php on line 167
Notice: Undefined variable: topic_depth in /home/xxxx/public_html/includes/boxes/articles.php on line 173
Notice: Undefined variable: articles_all_count in /home/xxxx/public_html/includes/boxes/articles.php on line 177
Any idea how to solved it ?
#1382
Posted 17 February 2010, 15:38
Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /home/satindi/domains/something.pl/public_html/includes/functions/compatibility.php:18) in /home/satindi/domains/something.pl/public_html/includes/functions/compatibility.php on line 30
language files are all in tact. any suggestions?
(
#1383
Posted 17 February 2010, 17:25
Michał Korzeniowski, on 17 February 2010, 15:38, said:
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#1384
Posted 21 February 2010, 12:18
Just installed your full version 1.57_3 and all went pretty smoothly until I checked back at my store. When I now click on a product picture to go to the description page I get an error message:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@mysite.co.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 Server at mysite.co.uk Port 80
#1385
Posted 21 February 2010, 18:28
Whiskers, on 21 February 2010, 12:18, said:
Internal Server Error
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#1386
Posted 22 February 2010, 11:12
Jack_mcs, on 21 February 2010, 18:28, said:
Hey Jack,
I think I determined that it was a buried eval hack that had started to eat away at my files. I have sorted it now, but I have just got to upload these files again.
#1387
Posted 22 February 2010, 11:46
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 24683 bytes) in mysite.co.uk/admin/includes/functions/articles.php on line 51
What does that mean?
Also when you go to an article by author there needs to be a space in the heading:
MiscellaneousArticles by
Can't find where to edit that.
Edited by Whiskers, 22 February 2010, 11:52.
#1388
Posted 22 February 2010, 13:55
Whiskers, on 22 February 2010, 11:46, said:
What does that mean?
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#1389
Posted 22 February 2010, 14:23
Jack_mcs, on 22 February 2010, 13:55, said:
I can't even create an article. That is what is said in that section when I click it.
#1390
Posted 22 February 2010, 17:36
Whiskers, on 22 February 2010, 14:23, said:
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#1391
Posted 22 February 2010, 18:09
Jack_mcs, on 22 February 2010, 17:36, said:
Yep, left column. I reckon I should reinstall it. I will give that a go tomorrow. Thanks.
#1392
Posted 23 February 2010, 15:30
I have really search the forum and especially this thread. But I cant find the answer I need to my problem, or I did not find an answer that I could understand
I have installed the Article Manager v.1.57_3, and everything looks fine, except that I do not have an editor in the article manager in my admin.
I usually use the tiny_mce, it is installed on my shop, but how come it is not showing in the article manager?
Maybe there is a differens between tiny_mce and tiny_mce Anywhere?
Is there something else I should install or do to get it working?
Hope someone can help me out there :-)
osCommerce 2.2
#1393
Posted 23 February 2010, 23:58
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#1394
Posted 24 February 2010, 19:52
Jack_mcs, on 23 February 2010, 23:58, said:
Hi Jack
Thanks for replying..
I found this on the TinyMCE website on what I need to do to use it on Article manager. But I just do not get it
It says:
TinyMCE in other places
If you have installed article manager, define mainpage, extra pages or whatever where tinyMCE is useful, you can do so:
- place in $mce_str the list of textareas where tinyMCE is to be used.
- between <head> and </head>, place this code:
$mce_str = YOURCODEHERE // Comma separated list of textarea names // You can add more textareas to convert in the $mce_str, be careful that they are all separated by a comma. echo '<script language="javascript" type="text/javascript" src="includes/javascript/tiny_mce/tiny_mce.js"></script>'; include "includes/javascript/tiny_mce/general.php";
I dont understand what I need to change.. and where to put it.. I tried article.php in the admin, but it messed it up. How much of this code do I need to insert, and where excatly?
Hope you can help me on that one?
osCommerce 2.2
#1395
Posted 24 February 2010, 23:34
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#1396
Posted 25 February 2010, 18:01
Jack_mcs, on 24 February 2010, 23:34, said:
I am sorry, I still do not understand this..
but thanks for trying, I apriciate that.
osCommerce 2.2
#1397
Posted 27 February 2010, 12:03
Blondinen, on 25 February 2010, 18:01, said:
but thanks for trying, I apriciate that.
I found the solution :-)
I downloaded the FCKeditor from the website http://www.fckeditor.net/, and installed it via my ftp in my admin on my website.
Then I used the FCK HTML Editor 2.7 (27 Jun 2008) from this thread http://addons.oscommerce.com/info/2900 and followed the small changes..
I just changed these 2 files
/admin/articles.php
/admin/includes/functions/html_output.php
And now it works for me... With the TinyMCE on my catalog editor and now this FCKeditor on my article manager :-) hope it helps someone
Edited by Blondinen, 27 February 2010, 12:03.
osCommerce 2.2
#1398
Posted 01 March 2010, 21:01
mirabilisvoyage, on 16 February 2010, 21:54, said:
Notice: Undefined variable: topic_depth in /home/xxxx/public_html/includes/boxes/articles.php on line 167
Notice: Undefined variable: topic_depth in /home/xxxx/public_html/includes/boxes/articles.php on line 173
Notice: Undefined variable: articles_all_count in /home/xxxx/public_html/includes/boxes/articles.php on line 177
Any idea how to solved it ?
I hope you didn`t forget about me
#1399
Posted 16 March 2010, 08:38
mirabilisvoyage, on 01 March 2010, 21:01, said:
Hi mirabilisvoyage,
well, here's a code block that seems to work for me (so far):
I was getting several undefined variable errors ($topic_depth, $articles_all_count and $articles_new_count)
The part I added is bold
if (DISPLAY_NEW_ARTICLES=='true') {
if (SHOW_ARTICLE_COUNTS == 'true') {
//originale
// $articles_new_query = tep_db_query("select a.articles_id from " . TABLE_ARTICLES . " a, " . TABLE_ARTICLES_TO_TOPICS . " a2t left join " . TABLE_TOPICS_DESCRIPTION . " td on a2t.topics_id = td.topics_id left join " . TABLE_AUTHORS . " au on a.authors_id = au.authors_id, " . TABLE_ARTICLES_DESCRIPTION . " ad where ((a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '" . (int)$languages_id . "' and td.language_id = '" . (int)$languages_id . "' and a.articles_date_added > SUBDATE(now( ), INTERVAL '" . NEW_ARTICLES_DAYS_DISPLAY . "' DAY))");
// modifiée
$articles_new_query = tep_db_query("SELECT a.articles_id from " . TABLE_ARTICLES . " a, " . TABLE_ARTICLES_TO_TOPICS . " a2t, " . TABLE_TOPICS_DESCRIPTION . " td, " . TABLE_AUTHORS . " au, " . TABLE_ARTICLES_DESCRIPTION . " ad where a.authors_id = au.authors_id and a2t.topics_id = td.topics_id and (a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '" . (int)$languages_id . "' and td.language_id = '" . (int)$languages_id . "' and a.articles_date_added > SUBDATE(now( ), INTERVAL '" . NEW_ARTICLES_DAYS_DISPLAY . "' DAY)");
// $articles_new_count = '';
// 3-16-10 jk fix
if (tep_db_num_rows($articles_new_query) > 0) {
//echo 'in articles php line 166 count = ' . tep_db_num_rows($articles_new_query);
$articles_new_count = tep_db_num_rows($articles_new_query);
$articles_new_count = ' (' . $articles_new_count . ')';
} else {
$articles_new_count = '';
}
} else {
$articles_new_count = '';
}
// X 3-16-10 jk fix
if (strstr($_SERVER['PHP_SELF'],FILENAME_ARTICLES_NEW) or strstr($PHP_SELF,FILENAME_ARTICLES_NEW)) {
$new_articles_string = '<b>';
}
$new_articles_string .= '<a href="' . tep_href_link(FILENAME_ARTICLES_NEW, '', 'NONSSL') . '">' . BOX_NEW_ARTICLES . '</a>';
if (strstr($_SERVER['PHP_SELF'],FILENAME_ARTICLES_NEW) or strstr($PHP_SELF,FILENAME_ARTICLES_NEW)) {
$new_articles_string .= '</b>';
}
$new_articles_string .= $articles_new_count . '<br />';
}
if (DISPLAY_ALL_ARTICLES=='true') {
if (SHOW_ARTICLE_COUNTS == 'true') {
// $articles_all_query = tep_db_query("select a.articles_id from " . TABLE_ARTICLES . " a, " . TABLE_ARTICLES_TO_TOPICS . " a2t left join " . TABLE_TOPICS_DESCRIPTION . " td on a2t.topics_id = td.topics_id left join " . TABLE_AUTHORS . " au on a.authors_id = au.authors_id, " . TABLE_ARTICLES_DESCRIPTION . " ad where ((a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '" . (int)$languages_id . "' and td.language_id = '" . (int)$languages_id . "')");
$articles_new_query = tep_db_query("SELECT a.articles_id from " . TABLE_ARTICLES . " a, " . TABLE_ARTICLES_TO_TOPICS . " a2t, " . TABLE_TOPICS_DESCRIPTION . " td, " . TABLE_AUTHORS . " au, " . TABLE_ARTICLES_DESCRIPTION . " ad where a.authors_id = au.authors_id and a2t.topics_id = td.topics_id and (a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '" . (int)$languages_id . "' and td.language_id = '" . (int)$languages_id . "'");
// 3-16-10 jk fix
if (tep_db_num_rows($articles_new_query) > 0) {
//echo 'in articles php line 166 count = ' . tep_db_num_rows($articles_new_query);
$articles_all_count = tep_db_num_rows($articles_new_query);
$articles_all_count = ' (' . $articles_all_count . ')';
} else {
$articles_all_count = '';
}
} else {
$articles_all_count = '';
}
// x 3-16-10 jk fix
// 3-16-10 jk fix added - if (isset($topic_depth)) { (because receiving error - Error: Undefined variable: topic_depth) now no errors
if (isset($topic_depth)) {
if ($topic_depth == 'top') {
$all_articles_string = '<b>';
}
}
// X 3-16-10 jk fix added - if (isset($topic_depth)) { (because receiving error - Error: Undefined variable: topic_depth) now no errors
good luck,
jk
ps - i'm using something by FWR - Contribution Name: KissER Error Handling & Debugging (OSC ID: 7217) to provide a list of errors
throughout the site - you may want to check it out - he has done some great stuff
#1400
Posted 27 March 2010, 20:45
1) the article URL shows up as -a-7.html in all the links, even though the converted URL les-origines-du-cafe-a-1.html works if i type it manually (site is in French) - using Ultimate_SEO_URLSv22d. Is it a language problem do you think? the .htaccess looks good...can't figure it out.
2) would love to get the actual article names to appear below each topic link in the right column infobox. anybody written code for this yet (i browsed the forum but there are a LOT of pages!)
and just to show that i'm not all take and no give, here's the code for a cool widget i made (infobox) to allow you to randomly post an abstract from the articles on the home (or other) page :
<?php
$info_box_contents = array();
$article_query = tep_db_query('SELECT articles_name, articles_description, articles_description.articles_id FROM `articles_description` INNER JOIN articles ON articles_description.articles_id = articles.articles_id AND language_id = 4 ORDER BY RAND() LIMIT 0, 1');
while ($liste = tep_db_fetch_array($article_query)) {
$descrip_courte = substr($liste['articles_description'], 0, 450);
$descrip_courte_p = $descrip_courte."...<p><a style='font-size:12px' href=" . tep_href_link(FILENAME_ARTICLE_INFO, 'articles_id=' . $liste['articles_id']) . ">Lisez la suite >></a></p>";
$info_box_contents[] = array('align' => 'left',
'text' => '<h1><a href="' . tep_href_link(FILENAME_ARTICLE_INFO, 'articles_id=' . $liste['articles_id']) . '">' . $liste['articles_name'] . '</a></h1>'. $descrip_courte_p);
}
new contentBox($info_box_contents);
?>
-jennyb














