Hi Folks,
I was trying to solve a simple issue of no changes being effected. I decided to upgrade and if it did not solve my problem, initiate a new complete install. I don't know what I actually toyed with to recieve the following error or How to fix it. The main issue is, the site was under development and already had 101 registerd users. All their contact info and emails are available but I will hate to reinsall and tell them to re-register If I can't bring the site up again to it's no Change effected state in order to Mass email users that the site is under development.
Thanks. Please find below the ERROR Message.
Warning: fopen(error.log) [function.fopen]: failed to open stream: Permission denied in /usr/local/4admin/apache/vhosts/WebsiteName.com/addon/WebsiteName.com/lib-common.php on line 1940Unfortunately, an error has occurred rendering this page. Please try again later.
This is what LINE 1940 Looks Like:
case 1:
$logfile = $_CONF['path_log'] . 'error.log';
if( !$file = fopen( $logfile, 'a' ))
{
$retval .= $LANG01[33] . ' ' . $logfile . ' (' . $timestamp . '
<br' . XHTML . '>' . LB;
}
else
{
fputs( $file, "$timestamp - $logentry \n" );
}
break;
case 2:
$retval .= COM_startBlock( $LANG01[55] . ' ' . $timestamp, '',
COM_getBlockTemplate( '_msg_block', 'header' ))
. nl2br( $logentry )
. COM_endBlock( COM_getBlockTemplate( '_msg_block',
'footer' ));
break;
default:
$logfile = $_CONF['path_log'] . 'error.log';
if( !$file = fopen( $logfile, 'a' ))
{
$retval .= $LANG01[33] . ' ' . $logfile . ' (' . $timestamp . '
<br' . XHTML . '>' . LB;
}
else
{
fputs( $file, "$timestamp - $logentry \n" );
$retval .= COM_startBlock( $LANG01[34] . ' - ' . $timestamp,
'', COM_getBlockTemplate( '_msg_block',
'header' ))
. nl2br( $logentry )
. COM_endBlock( COM_getBlockTemplate( '_msg_block',
'footer' ));
}
break;
}
}
return $retval;
}