Welcome Guest, Not a member yet? Register   Sign In
APC and codeigniter -- benchmark::mark() undefined.
#1

[eluser]mlakhara[/eluser]
Hello,
I recently installed APC on my xampp server on win7 and everything is running fine except the
fact that my codeigniter appplication is not starting and giving me this error.
Code:
Fatal error: Call to undefined method CI_Benchmark::mark() in C:\xampp\htdocs\cosys\cosys_initial\trunk\system\core\CodeIgniter.php on line 116


I googled to find something around this topic.
I saw this
http://stackoverflow.com/questions/27404...odeigniter
and tried to remedy my issue by using absolute path for system_path variable in index.php but it didn't work.
Please help me out.

/*********EDIT*******/
After commenting the line 116 I am still getting this error when there is any call to a CI class's method..
#2

[eluser]dcrawkstar[/eluser]
I am having this problem on AWS EC2. Wondering whats up? I've been tracking it down for the last day. If I figure it out, I'll repost. But if anyone has any insight please let me know. Thanks.

Chris

[quote author="mlakhara" date="1347014673"]Hello,
I recently installed APC on my xampp server on win7 and everything is running fine except the
fact that my codeigniter appplication is not starting and giving me this error.
Code:
Fatal error: Call to undefined method CI_Benchmark::mark() in C:\xampp\htdocs\cosys\cosys_initial\trunk\system\core\CodeIgniter.php on line 116


I googled to find something around this topic.
I saw this
http://stackoverflow.com/questions/27404...odeigniter
and tried to remedy my issue by using absolute path for system_path variable in index.php but it didn't work.
Please help me out.

/*********EDIT*******/
After commenting the line 116 I am still getting this error when there is any call to a CI class's method..[/quote]
#3

[eluser]dcrawkstar[/eluser]
//UPDATE//
FML. On reload of apache it works once, then crashes and burns again. That may have been a part of the issue, but no longer am I confident in it being the final solution.
//

OKAY! So not sure if anyone else has the error, BUT this comes from the fastcgi module. I disabled it and bam! I got up and working. Not that I was using it yet, but damned if I wont be soon. Now to track why FCGI is not able to see absolute paths in codeigniter.

My mod_fastgi conf file that I commented out in the httpd.conf file that got things working.
Code:
<IfModule mod_fastcgi.c>
    Alias /fcgi-bin "/opt/bitnami/apache2/cgi-bin"
    FastCgiServer /opt/bitnami/apache2/cgi-bin/php-cgi -idle-timeout 315
    AddHandler php-fastcgi .php
    <Location /fcgi-bin/>
        Options ExecCGI
        SetHandler php-fastcgi
    </Location>
    AddType application/x-httpd-fastphp .php
    Action php-fastcgi /fcgi-bin/php-cgi
</IfModule>

I've also never used it before so, this is a learning opportunity for me to understand more about it. If anyone has some insight into FastCGI and CI I would enjoy learning. Thanks!

Chris




Theme © iAndrew 2016 - Forum software by © MyBB