The error @SYSLOG: INTERNAL ERROR[2] occurs when news identifier is transmitted incorrectly when trying to go to the full news via a link.
Probably the reason for that is search.php intercepting the processing if news identifier. To avoid this problem and use the search box on the page with news you can use the following way: https://cutephp.com/forum/index.php?showtopic=44564
226 2015-01-13 08:28:00
Re: @SYSLOG: INTERNAL ERROR[2] (2 replies, posted in Problem Solving / Help & Support)
227 2015-01-13 07:43:37
Re: CKEditor doesn't work and emoticons don't show (4 replies, posted in Problem Solving / Help & Support)
Try removing all slashes in emoticons in the file cdata/config.php.
228 2015-01-13 07:42:59
Re: How To Make Appear Search Box? (1 replies, posted in Problem Solving / Help & Support)
You can look up a way to show the search box in example.php:
<!-- SECTION: SEARCH -->
<h3>Quick search</h3>
<form action="<?php echo PHP_SELF; ?>" method="GET">
<input type="hidden" name="dosearch" value="Y" />
<div>
<input style="width: 200px; padding: 4px;" class="text" type="text" name="search" value="<?php echo cn_htmlspecialchars(REQ('search')); ?>" />
<input style="width: 75px; padding: 4px;" class="submit" type="submit" value="search it!" />
</div>
</form>
then you will need to make the following changes on the news displaying page:
<?php
if (isset($_GET['search'])&&$_GET['search'])
{
include ("search.php");
}
else
{
include ("show_news.php");
}
?>229 2015-01-13 07:41:10
Re: [BUG]Media Manager Thumbs-CN 2.0.2 (5 replies, posted in Problem Solving / Help & Support)
TFancher, Tano87
Thank you for your feedback! The bugs will be fixed in the nearest future.
230 2015-01-13 07:40:08
Re: Cutenews stability with 8000 stories (10 replies, posted in Problem Solving / Help & Support)
If you archive your news regularly, CuteNews will be stable. The synthetic tests showed that the operating will be stable with 20 000 records.
231 2015-01-12 07:52:24
Re: Only posts blank article from 1970 (6 replies, posted in Problem Solving / Help & Support)
Check disk space on web server, maybe it's not enough for saving new articles.
232 2014-12-30 06:20:28
Re: Only posts blank article from 1970 (6 replies, posted in Problem Solving / Help & Support)
I have rights to cdata folder.
The folder has permission 755, if that is correct.
Try 757 or 777 permissions for cdata directory.
233 2014-12-27 11:50:49
Re: Only posts blank article from 1970 (6 replies, posted in Problem Solving / Help & Support)
You need to check whether you have rights to write to the cdata folder. It's possible that CuteNews cannot change files since they have been created by some other user in the system.
234 2014-12-24 12:48:47
Re: Fatal Error (1 replies, posted in Problem Solving / Help & Support)
You need to check the availability of the following files:
newslm/show_news.php
newslm/core/init.php
The system cannot find them for some reason.
If the files are there, you need to check the access rights for the user that runs your web-server.
235 2014-12-11 08:53:10
Re: Meta (if, else) (5 replies, posted in Problem Solving / Help & Support)
Hi support Team,
Yes first solution : the meta tags to simply not be displayed when they are empty
Best regards.
...
if( !empty($entry['mf']['photo'] ))
{
echo '<meta property="og:image" content="'.$entry['mf']['photo'].'"/>';
}
if( !empty($entry['mf']['photoxxl'] ))
{
echo '<meta property="og:image" content="'.$entry['mf']['photoxxl'].'"/>';
}
...
To tackle such problems faster, make yourself familiar with PHP documentation.
236 2014-12-10 14:47:15
Re: List all titles (11 replies, posted in Problem Solving / Help & Support)
Do you want to display the news titles within categories?
237 2014-12-10 14:32:41
Re: Cyrillic & Chinese characters don't display--may not be CN, but I can't find any answer (5 replies, posted in Problem Solving / Help & Support)
I'm desperate for clues to the solution, I took over a site with Russian and Spanish versions in addition to English. THey were still on UTF8 cutenews 1.something, so I upgraded to 2.0.2. The text in the body of the Russian pages displays correctly, but the page title the headers and footers return "????????" instead of the correct characters. I don't know if this is a generic HTML, PHP or other coding problem, or a problem specific to cutenews. I have spent many hours over months trying to figure out a solution, but I'm not closer to finding a solution than I was when I started. It's not a browser problem, because I have tried on a couple different Macs, using Firefox, Opera and Safari, and it appears the same in all, even with language preferences changed to include Russian Cyrillic and the former Webmaster who routinely navigates Russian and Ukrainian sites reported the same display problem.
Even if this is not strictly a cutenews issue, I am desperate for a clue how to solve this. MOst of the Q&A that comes up on Web searches has to do with SQL or AJAX or a specific application like Drupal. None of this applies to cn, obviously.
Thanks for any ideas.
EDIT: PS, didn't mention the Chinese site because I haven't been able to log in to upgrade, still waiting for login info from the previous webmast, but I imaging the solution to the Chinese page would be the same as the solution to the Russian page. Any tips I should know about maintaining a Chinese language site would also be most appreciated.
Please provide an elaborate report/example or a screenshot where the problem occurs. It'd be even better if you could provide a link where the problem can be seen/recreated.
238 2014-12-10 14:23:41
Re: Avatars? (2 replies, posted in Problem Solving / Help & Support)
The 2.0.x version doesn't provide support for avatars, however you may use Additional fields to display avatars in the newsfeed.
239 2014-12-10 14:06:12
Re: Date Translation (4 replies, posted in Problem Solving / Help & Support)
Unfortunately, there isn't a way to change the dates without having to write code as they depend on the locale settings on the server.
As for the "Go back" button, you can translate it in the file here: /core/includes/add_comment.php
240 2014-12-10 13:29:57
Re: Meta (if, else) (5 replies, posted in Problem Solving / Help & Support)
Do you want the meta tags to simply not be displayed when they are empty, or do you want to replace empty meta tags with some sort of a template?
241 2014-12-01 09:40:52
Re: [HELP] [HACK] Automated Short Story (15 replies, posted in Problem Solving / Help & Support)
Hi Support Team,
It's ok, the meta description works but a little problem. The meta description is not truncated and all the text of the full story appears in the meta description... Is it possible to limit it to 160 characters for example (better for SEO...) ?
Thanks you.
Cut your full-story by modify this code:
$short_story = (substr($entry['f'],0,160));242 2014-12-01 06:49:17
Re: [HELP] [HACK] Automated Short Story (15 replies, posted in Problem Solving / Help & Support)
Hi Support Team.
Actually it's ok but if I don't use short story (for gain of time for writers), the meta description are empty because I use this code :
<?PHP require_once "../news/cn_api.php";$entry = cn_api_get_entry();if ($entry['t']){$header_title = ($entry['t']);$short_story = ($entry['s']);$tagline = ($entry['tg']);$category_name = ( join(' / ', $entry[':cot']) );$trunc_short = trim( (strip_tags($short_story)) );$entry['mf']['photo'];$entry['mf']['photoxxl'];$entry['mf']['video'];$entry['mf']['videoxxl'];$entry['mf']['daily'];$entry['mf']['dailyxxl'];$entry['mf']['twitter'];}echo '<title>'.$header_title.' - '.$category_name.'</title>';echo '<meta name="description" content="'.$trunc_short.'"/>'
The meta <meta name="description" content="'.$trunc_short.'"/> is linked to the short story.
How to do this with full story in meta description ? And of course truncate the full story because a meta description doesn't exceed 160/165 words...
Is it possible ?
Thaks you.
Chenge
$short_story = ($entry['s']);
to
$short_story = ($entry['f']);
on your code.
243 2014-11-27 13:01:42
Re: [HELP] [HACK] Automated Short Story (15 replies, posted in Problem Solving / Help & Support)
yes thanks you, it's ok for RSS but for meta description ?
Cutenews doesn't know anything about meta tags on your page as it displays news on already processed php webpage. You need to alter the displaying of meta tags using CMS, which you integrate CuteNews into.
244 2014-11-27 09:35:57
Re: [HELP] [HACK] Automated Short Story (15 replies, posted in Problem Solving / Help & Support)
... and for the RSS it's the same problem, I don't want to use full story because in RSS feed, all the text is not really good...
<item>
<title><![CDATA[{title}]]></title>
<link>{rss-news-include-url}</link>
<description><![CDATA[{short-story}]]></description>
<guid isPermaLink="false">{news-id}</guid>
<pubDate>{date}</pubDate>
</item>
Problem is solved similarly:
<description><![CDATA[{short-story}]]></description>
change to
<description><![CDATA[[truncate=20]{full-story}[/truncate]]]></description>245 2014-11-27 08:21:28
Re: << Previous Next >> Pagination Problem (2.0.2+last update from GitHub) (3 replies, posted in Problem Solving / Help & Support)
In the current version of CuteNews you cannot have more then one instance of news displayed on one page using show_news.php. This is due to the fact that GET and POST requests are processed simultaneously and equally in all variants of show_news.php. Simply put, after clicking the Next >> or << Previous the variables become the same for all instances, which results in displaying three identical news columns.
We have taken this issue into account and in the next version of CuteNews there wiil be the possibility to create more than one instance on a page.
246 2014-11-27 08:20:22
Re: [HELP] [HACK] Automated Short Story (15 replies, posted in Problem Solving / Help & Support)
To generate an automated Short Story you don't have to use hack in version 2.0.2.
You can get the result in a quite simple way:
1. Go to Dashboard > Templates > Active News and edit the template. Instead of {short-story} you need to insert [truncate=20]{full-story}[/truncate] and save the changes.
2. Go to Dashboard > System configurations > News and tick Short story field will not be required, then save the changes.
3. That's it!
247 2014-11-25 08:31:17
Re: 2.0.1 pagination not displaying (10 replies, posted in Script Feedback and Suggestion)
Upgrade to 2.0.2 version of CuteNews. This issue was fixed.
After migration from old version run migration_update_indexes.php.
248 2014-11-24 14:06:33
Re: Archive - link destination (1 replies, posted in Problem Solving / Help & Support)
Can you show us some examples? Working with archives is no different from working with active news.
249 2014-11-24 14:06:03
Re: multiple inculde in other category (2 replies, posted in Problem Solving / Help & Support)
You can try enabling news showing using the following code:
<?php
$category = 1;
include("cute/show_news.php");
?>
While specifying id categories use no inverted commas.
250 2014-11-20 14:59:38
Re: How to translate cutenews? (7 replies, posted in Problem Solving / Help & Support)
The encoding problem can be solved using the following ways:
1. Set the <meta> tag in the <head> of the page specifying the encoding you want to use.
2. Set in browser the encoding you want to use. Edit template. Save changes.
3. Open the file skins/base/defaults/templates.tpl and convert it to the desired encoding, for example, by using notepad ++, save, go to the Dashboard> Templates, select a template, where localization is not used, then change it (adding a couple of spaces) and save the changes.
One of these methods should provide the necessary result.
