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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:14:10+00:00 2026-05-17T02:14:10+00:00

This is probably obvious but I’m getting this error: A PHP Error was encountered

  • 0

This is probably obvious but I’m getting this error:

A PHP Error was encountered

Severity: Notice

Message: Undefined index: outputcards

Filename: controllers/site.php

Line Number: 49

Here’s the line in question:

$out['outputcards'] .= $this->load->view('client_view_data',$data, TRUE);

which is inside a for loop, and being used in the view as echo $outputcards.

All works fine, but the error is there at the top.

Any ideas?

Thank you!

  • 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-05-17T02:14:11+00:00Added an answer on May 17, 2026 at 2:14 am

    You are concatenating new data to the $out['outputcards'], but the very first time you do this the $out['outputcards'] probably does not exist yet. So if you have a array called $out, before you start the loop that contains that code, simply do a $out['outputcards'] = ""; (assuming you are concatenating strings)

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

Sidebar

Related Questions

This will probably be obvious but I can't find the best way. I want
This is probably an obvious question to many but I'm scratching my head over
This is with SBCL 1.0.55 on Debian squeeze. I'm probably missing something obvious, but
This is probably really obvious, but how do I use bundles in Aptana 3?
This is probably a duplicate to many but the obvious answers in them do
This is probably a really obvious question, but it's driving me nuts. We have
This is probably really obvious and simple - but it isn't to me with
This is probably obvious, but I'm a bit of a newbie and have spent
This is probably really simple, and the answer is probably really obvious, but I'm
This is probably something very obvious, but I have a new to Qt and

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.