Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8060643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:03:55+00:00 2026-06-05T10:03:55+00:00

I use CodeIgniter 2.1 and my production server was updated to PHP 5.4.3-1, and

  • 0

I use CodeIgniter 2.1 and my production server was updated to PHP 5.4.3-1, and the pages that uses phpactiverecord don´t show nothing and don’t show any error.

In my test servers with 5.3.6 works fine.

I use the nightly build version of May 2012. I try with the older versions and stable version.

Php-activerecord don´t work fine with php 5.4.3?


EDIT: I found that my new server doesn´t have displays_errors = ON. After activate it, I see the error:

Fatal error: Class 'Category' not found in /srv/www/framework/application/controllers/categories.php on line 26

at line 26:

$data["categories"] = Category::findby($parent_id);

categories.php exists in /srv/www/framework/application/controllers/ and this works fine on PHP 5.3.6.

I need to call something more or call at a different way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T10:03:57+00:00Added an answer on June 5, 2026 at 10:03 am

    I found the solution.

    This solution is for php-activerecord through the latest SPARKS version.

    Debugging the autoload_function, I´ve seen that the model file was loaded with the first letter capitalized, only in PHP 5.4.3, not in 5.3.x, and the file wash´t loaded.

    Find the ActiveRecord.php at

    yourfolder/sparks/php-activerecord/0.0.0.2/vendor/php-activerecord
    

    Search the function:

    activerecord_autoload($class_name)
    

    Line 49 change:

        $file = $root.DS.$file_name;
    

    for

        $file = $root.DS.strtolower($file_name);
    

    And now it works!

    p.d. I have found another strange case with PHP 5.4.3 before solve this. The function parse_url() returns false if your database password has a ‘/’ on the string. Because of this, php-activerecord could not connect to the database in the file yourfolder/sparks/php-activerecord/0.0.0.2/vendor/php-activerecord/lib/connection.php at function: file parse_connection_url().

    On PHP 5.3 returns the correct array.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used an htaccess in my project that use Codeigniter framework: DirectoryIndex index.php RewriteEngine
I'm trying to use PHP ActiveRecord in Codeigniter. I have a model like this:
I use codeigniter.I want search in site contents for several word, that did existence
I use CodeIgniter and i love it, but i don't know whether it's really
I'm making use of codeIgniter to upload files into folders in the server. Now
I currently use CodeIgniter as my framework of choice when using PHP. One of
I use NearlyFreeSpeech.Net as my host, and my php app (coded in CodeIgniter) needs
Does using a PHP framework (CodeIgniter, Zend) require special server side setup? And if
I have updated my website to now use the codeigniter framework my new urls
I use codeigniter and i want make uniqid code with php as following code(by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.