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 8235473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:49:24+00:00 2026-06-07T18:49:24+00:00

Our site worked fine on the old server, but we’ve recently moved it to

  • 0

Our site worked fine on the old server, but we’ve recently moved it to a new server, and immediately, everything on the site looked messed up (ie can’t find the data it’s looking for in the views).

Upon further investigation, what was previously returned like this:

$articles[0]['Article']['title']

Is now returning:

$articles[0][0]['title']

At first, we were told it was that PDO wasn’t installed (or was corrupted or something), but we rerebuilt Apache with PDO over and over and it’s showing PDO on for both PHP and MySQL.

I’ve tried searching, but either I’m searching for the wrong thing, or there’s no good info out there. Any ideas what could be causing this and/or how we can fix it?


Edit:

It also worked on this server prior to an update, which updated it to 5.3 (not sure what the prev version was)

Edit 2

Per suggestion, I changed the datasource to HpMysql This makes it work. It doesn’t answer my question though, as I see it as a temporary fix – I’d still like to know what the issue is, and how to fix it without having to use this workaround.

  • 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-07T18:49:28+00:00Added an answer on June 7, 2026 at 6:49 pm

    Answer by Original Poster (me):

    According to our server guy, “There are two ways to load PDO. The first is by using easyapache to install the PDO php extension. The second is by installing the PDO via PECL. It appears that the modules in question are different.”

    Apparently, this server had PECL on it instead of the normal easyapache PDO. When he removed that, and restarted/reset it with the easyapache PDO, everything worked great.

    So – sounds like CakePHP requires the “normal” PDO.

    Mystery solved.

    If you have PECL instead, you can use this workaround:

    Create a file “HpMysql.php” in your Datasource folder and add this code/class: https://github.com/lorenzo/HipHop/blob/master/Model/Datasource/Database/HpMysql.php

    Change your database.php ‘datasource’ to ‘HpMysql’


    Different problem: (turned out to be the same answer):

    $this->Auth->login() creates correct query that returns 1 row, but fails IF check (server specific issue)

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

Sidebar

Related Questions

We have a site that we're moving to a new server. Everything worked fine
Our Site, www.bulletnewsdeals.com, results in Server Not Found, Ping is failing saying host not
Our site uses a great deal of JQuery, but on iOS effects such as
I'm testing a conversion of our site's database from Sql Server to MySQL on
our site address is like http://members.XXX.XX, so I want to redirect to the https://members.XXX.XX
Our site contains href links to various subdomains: foo.mysite.com, bar.mysite.com. For testing purposes, I'd
In one page of our site, I have this code: $_SESSION['returnURL'] = /store/checkout/onepage; and
I'm switching over our site to use Asynchronous Google Analytics, and I'm curious about
We are considering migrating our site from flash to silverlight, and also building additional
I tried backing up our site today using the Unix 'cp' command and ended

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.