Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

error with krika_news_v1.0


Recommended Posts

i installed krika_news_v1.0 , the edit news in the admin page is working there

but when i print news text in text box it opens error page :


Warning: fopen(/home/virtual/site82/fst/var/www/html/catalog/Espa�ol_news.txt): failed to open stream: Permission denied in /home/virtual/site82/fst/var/www/html/catalog/admin/action_news.php on line 47

Error al abrir el archivo para escribir en �l

Warning: fclose(): supplied argument is not a valid stream resource in /home/virtual/site82/fst/var/www/html/catalog/admin/action_news.php on line 55


i updted premissions for action_news.php 777 but still not working...


this is the code i have in action_news.php:



$Id: action_news.php,v1.0 2004/05/10 22:50:51


osCommerce, Open Source E-Commerce Solutions



Copyright © 2003 osCommerce


Released under the GNU General Public License





include('includes/languages/' . $language . '/edit_news.php');








<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">


<script language="JavaScript">

function redimenciona () {

var h=260;

var w=360;










<table border="0" cellspacing="0" cellpadding="0" align="center" class="infoboxcontent" width="100%" height="100%">


<td align="center" class="specialprice">



La variable $nombre contiene el path y nombre del archivo txt.

La variable $textonoticias es la que contiene la noticia



if ($fp=fopen ($nombre,'w'))



echo '<b>' . EXIT_FINISH . '<br>';

echo NAME_FILE_FINISH . $nombre . '</b>';


else { echo ERROR_WRITE_FINISH; }














Link to comment
Share on other sites

solved that problem but somthing new:

the edit news in the admin page is working there

but when i print news text in text box it opens error page :

La operacion se ha realizado con exito

Se ha modificado el contenido del archivo de noticias /home/virtual/site82/fst/var/www/html/catalog/English_news.txt


it dose write the txt file English_news.txt but in the index page

it dose not show me the text but shows me : $news_text

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...