• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Error Log Size 5 GB, Is this script really this much bad ?

Started by rishab55555,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rishab55555Topic starter

I saw today that my website error log size is 5gb, first time in my 6 year career saw such error log.

Are you sure proper coding has been done ?

Screenshot Attached.
  •  

PHPVibe A.

Depends what's in it.
Don't jump to coding conclusions, we are using the same script on massive traffic domains, if we had anything similar it would have got us worries and surely had been fixed by now, but depends on the server config a lot.
So, what's in the log?

rishab55555Topic starter

You are asking what's in the log?

Do you expect me to download that 5 gb file and open it ?

Cpanel is not allowing to open it.

If the error log is of 5gb than their must be massive errors in the coding part. I have deleted it and if such things starts again I will post error log content.
  •  

PHPVibe A.

I've had an magento generating 8 gb per day on a client's site, was a pain to find the bloody cause.
But when you have an issue, I can tell you what the problem is, for now we are aware of this http://www.phprevolution.com/forum/features-and-progress/phpvibe-3-5-patch-i-suggestionsissues-thread/

rishab55555Topic starter

  •  

rishab55555Topic starter

Now on another site same thing happened. I deleted the file and again it started filling.

[03-Apr-2014 03:37:38 America/Los_Angeles] PHP Warning:  Invalid argument supplied for foreach() in /home/wwwmodit/public_html/feed.php on line 18
[03-Apr-2014 03:37:38 America/Los_Angeles] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/wwwmodit/public_html/feed.php:18) in /home/wwwmodit/public_html/lib/rss.class.php on line 231
[03-Apr-2014 03:37:38 America/Los_Angeles] PHP Warning:  Invalid argument supplied for foreach() in /home/wwwmodit/public_html/feed.php on line 18
[03-Apr-2014 03:37:38 America/Los_Angeles] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/wwwmodit/public_html/feed.php:18) in /home/wwwmodit/pu


It has something with feeds or cropn.php file as my cron.php file was disabled by hosting guys after a warning of high resource usage.
  •  

PHPVibe A.


rishab55555Topic starter

Alex, I have sent you PM for the url. Do you want me to share it here?
  •  

PHPVibe A.

Quote from: rishab55555 on
Alex, I have sent you PM for the url. Do you want me to share it here?

No need, I will check now, I don't usually check my messages as everybody has this tendency to message me and not post (which is against the rules).

rishab55555Topic starter

Thanks buddy, actually I didn't wanted to post the url for some reasons. Sorry for any problems caused. Will wait for any solution over this.

Also what problems will I face as my hosting people have disabled cron.php file.
  •  

PHPVibe A.

cron.php just makes automated tasks, doesn't do anything else, or break the script.

But you can open in root index.php and remove this part of the code:

/* Crons trigger */
if(function_exists('exec')) {
$time_passed = time() - get_option('cron_lastrun');
$cron_interval = get_option('cron_interval');

if( $time_passed  > $cron_interval) {
$arrOutput = '';
update_option('cron_lastrun', time());
$binpath = get_option('binpath','/usr/bin/php');
$command = $binpath." -f ".ABSPATH."/cron.php";
exec( "$command > /dev/null &", $arrOutput );
}
}


Upload cron.php with another name and run it from cpanel/plesk/etc cron tab.
Once again: Caution with how many imports you run, there is no resource cheap solution coding side, except a good import campaign on your side (video/page limits).

Similar topics (7)