You are not logged in.
Hello,
I performed a new install of Serposcope 1.0.7 on Ubuntu 14.04 using PHP 5.6.14 and when running from command line "php cron.php" I get the error:
PHP Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
I tried changing my PHP directive from the default of "4096" to "off", "on", and back to the default of "4096" and this did not effect it (restarted server each time, error did not change)
I attempted to search forums but I did not see any solution to this issue. Anyone know what I should check on my server that could cause this?
Thanks!
Offline
Really strange error, I'm afraid I don't have a solution, you'll have to google for this specific php error : 'Cannot use output buffering in output buffering display handlers'
Or you can wait for serposcope 2, it will be released in ~ 1 month, it doesn't use this logging system anymore so it will be fixed.
Offline
Thanks for the reply,
Since I am new with this I was wondering if their are any debugging or additional logs I can enable or check to find more information?
Offline
Here is a full output.
From SSH:
root@domain:/public_html/serp# php -d memory_limit=128M -d max_execution_time=0 cron.php
[27/10/2015 06:28:20][Cron] Starting cron via "cli"
PHP Notice: Undefined variable: proxy in /public_html/serp/inc/class.proxies.php on line 12
[27/10/2015 06:28:20][Cron] DEBUG: display total unit 11
[27/10/2015 06:28:20][Cron] DeathByCaptcha not configured, skipping
[27/10/2015 06:28:20][Cron] Clearing the cache (force=1)...
[27/10/2015 06:28:20][Cron] Cache clear
[27/10/2015 06:28:20][Cron] Checking group[1] TPCP with module Google
[27/10/2015 06:28:20][Google] Switched to proxy DIRECT
[27/10/2015 06:28:20][Google] Checking {searchterm omitted} on www.google.com
[27/10/2015 06:28:20][Curl] DEBUG: GET http://www.google.com/preferences via DIRECT (mem: 0.75M/128M)
[27/10/2015 06:28:21][Curl] DEBUG: GOT status=200 cache=MISS age=0 (mem: 1M/128M)
[27/10/2015 06:28:21][Curl] DEBUG: GET http://www.google.com/uul?muul=4_18&luul=New+York&uulo=1&usg=0_SmuXUgxRtfTj1utVbxu1h2yWt8M=&hl=en via DIRECT (mem: 1M/128M)
[27/10/2015 06:28:21][Curl] DEBUG: GOT status=200 cache=MISS age=0 (mem: 1M/128M)
[27/10/2015 06:28:21][Google] DEBUG: local search on New York
[27/10/2015 06:28:21][Curl] DEBUG: GET https://www.google.com/search?q={searchterm omitted} via DIRECT (mem: 1M/128M)
[27/10/2015 06:28:22][Curl] DEBUG: GOT status=200 cache=MISS age=0 (mem: 1.5M/128M)
PHP Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
From Log Shown in Web Interface:
Run done in 00:00:46 with error (PID: 14618 started: 2015-10-27 14:28:20)
-----
[27/10/2015 06:28:20][Cron] Starting cron via "cli"
[27/10/2015 06:28:20][Cron] DEBUG: display total unit 11
[27/10/2015 06:28:20][Cron] DeathByCaptcha not configured, skipping
[27/10/2015 06:28:20][Cron] Clearing the cache (force=1)...
[27/10/2015 06:28:20][Cron] Cache clear
[27/10/2015 06:28:20][Cron] Checking group[1] TPCP with module Google
[27/10/2015 06:28:20][Google] Switched to proxy DIRECT
[27/10/2015 06:28:20][Google] Checking {searchterm omitted} on www.google.com
[27/10/2015 06:28:20][Curl] DEBUG: GET http://www.google.com/preferences via DIRECT (mem: 0.75M/128M)
[27/10/2015 06:28:21][Curl] DEBUG: GOT status=200 cache=MISS age=0 (mem: 1M/128M)
[27/10/2015 06:28:21][Curl] DEBUG: GET http://www.google.com/uul?muul=4_18&luul=New+York&uulo=1&usg=0_SmuXUgxRtfTj1utVbxu1h2yWt8M=&hl=en via DIRECT (mem: 1M/128M)
[27/10/2015 06:28:21][Curl] DEBUG: GOT status=200 cache=MISS age=0 (mem: 1M/128M)
[27/10/2015 06:28:21][Google] DEBUG: local search on New York
[27/10/2015 06:28:21][Curl] DEBUG: GET https://www.google.com/search?q={searchterm omitted} via DIRECT (mem: 1M/128M)
[27/10/2015 06:28:22][Curl] DEBUG: GOT status=200 cache=MISS age=0 (mem: 1.5M/128M)
ERROR ABNORMAL TERMINATION : process may have been killed or reached max execution time
-----
Process terminated, end of log
Offline
that's really strange, did you try to run from cli but not as root ?
Offline
I just tried another user account and same issue, no change. I tried another VPS all together on a different server with Ubuntu 15.04 & PHP 5.6 and I had the same exact error.
I commented out the ob_start line in cron.php to see if the script would run without it and it did. It is checking keywords and scrolling the SSH session with the output with the ob_start line disabled.
Is their any alternative way to make the output buffer work?
Offline
well I don't know first time I see this issue... I won't try to find a fix because I don't maintain serposcope v1 anymore, working exclusively on serposcope v2.
Offline