Happening for me, too.
I'm using version 2.0.
Dear CuteNews Users! Please feel free to contact us via our new Feedback Form and please send information about bugs to our bug tracker.
You are not logged in. Please login or register.
CutePHP Forums → Posts by Rasmus Larsen
Pages 1
Happening for me, too.
I'm using version 2.0.
Hi again guys. I've updated to CuteNews 1.5.3, but the problem persists. How do I fix the problem the problem with special characters in titles?
The code seems to be related to the achieve. I'm not using the archieve feature at all. Can I just delete this code to eliminate the php error?
Hi guys
I'm experiencing various issues with CuteNews 1.5.3, so I thought I would check the error_dump.log. I has accumulated a massive number of the same error. It seems to be running in loop or something. It says:
Warning: readdir() expects parameter 1 to be resource, boolean given; /core/com/allow_full_story.php:35;
The relevant code is:
// Article ID was not found, if we have not specified an archive -> try to find the article in some archive.
// Auto-Find ID In archives
//----------------------------------------------------------------------
if (!$found)
{
echo '<a id="com_form"></a>';
if (!$archive or $archive == '')
{
// Get all archives. (if any) and fit our lost id in the most propper archive.
$lost_id = $id;
$all_archives = false;
$hope_archive = false;
if (!$handle = opendir(SERVDIR."/cdata/archives")) echo ("<!-- ".lang('cannot open directory')." ".SERVDIR."/cdata/archives --> ");
while (false !== ($file = readdir($handle))) <------ ERROR IN THIS LINE
{
if ($file != "." and $file != ".." and !is_dir(SERVDIR."/cdata/archives/$file") and substr($file, -9) == 'news.arch')
{
$file_arr = explode(".", $file);
$all_archives[] = $file_arr[0];
}
}
closedir($handle);
if ($all_archives)
{
sort($all_archives);
if (isset($all_archives[1]))
{
foreach($all_archives as $this_archive) if ($this_archive > $lost_id) { $hope_archive = $this_archive; break; }
}
elseif ($all_archives[0] > $lost_id)
{
$hope_archive = $all_archives[0];
return FALSE;
}
}
}
if ($hope_archive)
{
$URL = $PHP_SELF.build_uri('archive,start_from,ucat,subaction,id', array($hope_archive));
echo '<div>'.lang('You are now being redirected to the article in our archives, if the redirection fails, please').' [url=]'.lang('click here').'[/url]</div>
<script type="text/javascript">window.location="'.str_replace('&', '&', $URL).'";</script>';
}
else
{
echo '<div style="text-align: center;">'.lang('Cannot find an article with id').': <strong>'. (int)htmlspecialchars($id).'</strong></div>';
}
return FALSE;
}
I have the same problem. I just installed 1.5.3 and created two additional fields. I started filling information into them, and then left for an hour or something. When I came back the fields were gone.
I manually created the fields again with similar names and the data I filled into them earlier is still there, but what the heck is going on here? I'm hesitant to use the fields even though I really need them.
Hi everyone
I'm running Cutenews 1.4.6. We just updated the PHP on the server, which gave a few problems. I managed to fix most, but one remains.
I'm using this script (https://cutephp.com/forum/index.php?showtopic=31743) to get article titles up into the <title> tag in the browser. It worked flawlessly before, but after the PHP update it no longer shows the title if æ, ø or å (Danish characters) are used in the title. If they aren't used the title shows up fine. Two examples:
Not working: http://www.flatpanels.dk/nyhed.php?subacti...p;id=1382697214
Working: http://www.flatpanels.dk/nyhed.php?subacti...p;id=1382683846
I cannot find any charset setting in Cutenews..
How do I fix this? Can I add something to the <title> php script?
Thanks!
Pages 1
CutePHP Forums → Posts by Rasmus Larsen
Powered by PunBB, supported by Informer Technologies, Inc.
The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.