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

  • Home
  • SEARCH
  • 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 7848715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:18:01+00:00 2026-06-02T18:18:01+00:00

I am using MAMP and codeigniter framework. Am facing a very weird problem. There

  • 0

I am using MAMP and codeigniter framework.


Am facing a very weird problem. There is an active record statement where i write.

$this->db->select('user_vcard.pro_pic_filename AS `author_pro_pic_filepath`');

If i use AS author_pro_pic_filepath in the CI statement, after executing the HTTP request I get a SERVER ERROR. Then if i try to refresh the page, my browser stalls for a long time and then, at one point, it says

Error Number: 1205.
Lock wait timeout exceeded; try restarting transaction

However, if i replace AS author_pro_pic_filepath with ANY OTHER NAME, it works just fine.


Here are somethings i tried to do to solve the problem:

  1. I exported a .sql dump of the database and kept it in a safe place
  2. I tried dropping all tables.
  3. I tried dropping the entire database.
  4. I cleared all MySQL user privileges from the tables
  5. I cleared all cookies, session data from my browser
  6. I tried on both Safari and Chrome
  7. I tried shutting down MAMP.
  8. I tried shutting down my laptop.
  9. I tried doing all the above together.
  10. I also tried turning off all transaction statements inside my codeigniter code.

No change in result. It is always behaving like I mentioned above.

I have used this same active record statement in several other files in my app. Everywhere it is working fine. But only in this ONE particular file I am facing the issue mentioned above.


result of SQL query: SHOW ENGINE INNODB MUTEX;

Rows: 2

Type    InnoDB  
Name    /users/severin/MAMPexp/MAMP_packages/mysql-5.5.9/storage/innobase/srv/srv0srv.c:1030    
Status  os_waits=1

Type    InnoDB
Name    /users/severin/MAMPexp/MAMP_packages/mysql-5.5.9/storage/innobase/log/log0log.c:832 
Status  os_waits=7

result of SQL query: SHOW ENGINE INNODB MUTEX;

Rows: 1

Type    InnoDB      
Name    
Status  
=====================================
120426 18:39:04 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 5 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 56 1_second, 56 sleeps, 5 10_second, 8 background, 8 flush
srv_master_thread log flush and writes: 57
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 8, signal count 8
Mutex spin waits 2, rounds 31, OS waits 1
RW-shared spins 7, rounds 210, OS waits 7
RW-excl spins 0, rounds 0, OS waits 0
Spin rounds per wait: 15.50 mutex, 30.00 RW-shared, 0.00 RW-excl
------------
TRANSACTIONS
------------
Trx id counter 8BCB
Purge done for trx's n:o < 8BBD undo n:o < 0
History list length 149
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 0, not started, OS thread id 4531712000
MySQL thread id 55, query id 926 localhost root
SHOW ENGINE INNODB STATUS
---TRANSACTION 8BBB, not started, OS thread id 4531163136
MySQL thread id 44, query id 820 localhost doc2doc
---TRANSACTION 8BBD, ACTIVE 486 sec, OS thread id 4531437568
3 lock struct(s), heap size 376, 2 row lock(s), undo log entries 1
MySQL thread id 45, query id 831 localhost doc2doc
Trx read view will not see trx with id >= 8BBE, sees < 8BBE
--------
FILE I/O
--------
I/O thread 0 state: waiting for i/o request (insert buffer thread)
I/O thread 1 state: waiting for i/o request (log thread)
I/O thread 2 state: waiting for i/o request (read thread)
I/O thread 3 state: waiting for i/o request (read thread)
I/O thread 4 state: waiting for i/o request (read thread)
I/O thread 5 state: waiting for i/o request (read thread)
I/O thread 6 state: waiting for i/o request (write thread)
I/O thread 7 state: waiting for i/o request (write thread)
I/O thread 8 state: waiting for i/o request (write thread)
I/O thread 9 state: waiting for i/o request (write thread)
Pending normal aio reads: 0 [0, 0, 0, 0] , aio writes: 0 [0, 0, 0, 0] ,
ibuf aio reads: 0, log i/o's: 0, sync i/o's: 0
Pending flushes (fsync) log: 0; buffer pool: 0
413 OS file reads, 520 OS file writes, 381 OS fsyncs
0.00 reads/s, 0 avg bytes/read, 0.00 writes/s, 0.00 fsyncs/s
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf: size 1, free list len 0, seg size 2, 0 merges
merged operations:
insert 0, delete mark 0, delete 0
discarded operations:
insert 0, delete mark 0, delete 0
Hash table size 276707, node heap has 1 buffer(s)
0.00 hash searches/s, 0.00 non-hash searches/s
---
LOG
---
Log sequence number 5050799
Log flushed up to   5050799
Last checkpoint at  5050799
0 pending log writes, 0 pending chkp writes
370 log i/o's done, 0.00 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total memory allocated 137363456; in additional pool allocated 0
Dictionary memory allocated 114130
Buffer pool size   8192
Free buffers       7736
Database pages     455
Old database pages 0
Modified db pages  0
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 0, not young 0
0.00 youngs/s, 0.00 non-youngs/s
Pages read 402, created 53, written 322
0.00 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 1000 / 1000, young-making rate 0 / 1000 not 0 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s
LRU len: 455, unzip_LRU len: 0
I/O sum[0]:cur[0], unzip sum[0]:cur[0]
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
2 read views open inside InnoDB
Main thread id 4506259456, state: waiting for server activity
Number of rows inserted 507, updated 2, deleted 0, read 1679
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================
  • 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-02T18:18:03+00:00Added an answer on June 2, 2026 at 6:18 pm

    OMG……….. I have just proven myself to be a big time dumb ass after having spent 2 days trying to figure this out.

    I was calling a helper function while I had not loaded the helper beforehand.

    Pardon my idiocy.

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

Sidebar

Related Questions

I'm using CodeIgniter's Active Record Classes and I'm retrieving an error using the following
I am hosting a CodeIgniter site locally using MAMP on my mac. Whenever I
I'm using Codeigniter if this makes it easier. I'm wondering if a website is
I'm using MAMP, but I have a problem with session. My code works perfectly
http://codeigniter.com/user_guide/general/urls.html I am using a MAMP setup I access my codeigniter welcome message as
I'm developing an application using CodeIgniter on a MAMP server (for development, live it'll
I'm having a bizarre problem with php 5.3.6 and ImageMagick (command line) using MAMP
I setup a local website using mamp, there are other sites I run in
I develop using MAMP pro on my Mac. When I start MAMP it prompts
i'm using MAMP and want to activate xdebug. i've uncomment the following row in

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.