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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:22:15+00:00 2026-05-23T23:22:15+00:00

i have a error to use of multiupload with CodeIgniter: this is error: Fatal

  • 0

i have a error to use of multiupload with CodeIgniter:
this is error:

Fatal error: Call to protected method CI_Upload::_prep_filename() from
context ‘Multi_upload’ in
D:\xampp\htdocs\CodeIgniter_2.0.0\application\libraries\Multi_upload.php
on line 91

and line 91 in multi_upload.php:

// Set the uploaded data as class variables
    $CI->upload->file_temp = $_FILES[$field]['tmp_name'][$i];        
    $CI->upload->file_name = $CI->upload->_prep_filename($_FILES[$field]['name'][$i]); // this is line 91
    $CI->upload->file_size = $_FILES[$field]['size'][$i];        
    $CI->upload->file_type = preg_replace("/^(.+?);.*$/", "\\1", $_FILES[$field]['type'][$i]);
    $CI->upload->file_type = strtolower($CI->upload->file_type);
    $CI->upload->file_ext  = $CI->upload->get_extension($_FILES[$field]['name'][$i]);
  • 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-23T23:22:17+00:00Added an answer on May 23, 2026 at 11:22 pm

    Well, you are trying to call the _prep_filename() method, which is protected, from outside the class it’s declared in.

    protected means you cannot call a method from outside the class it’s declared (or one of its child-classes).

    So, basically, the Fatal Error is expected behavior — and the solution is to not call that protected method.

    About that, you should read the Visibility section of the manual.

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

Sidebar

Related Questions

I have this error, Fatal error: Call to undefined method CI_Input::file() in D:\xampp\htdocs\application\controllers\page.php on
i have a error to use of multiupload with CodeIgniter: What changes can, to
I have this error that is keeping me from moving forward. I basically have
I'm getting an error when I use the SharpZipLib. I have code that looks
In my program, I have been receiving an error when I use a command-line
I have an error handling method in my ApplicationController: rescue_from ActiveRecord::RecordNotFound, :with => :not_found
I have an error occuring frequently from our community server installation whenever the googlesitemap.ashx
I have this error message: Msg 8134, Level 16, State 1, Line 1 Divide
This time I have an error which I have been trying again to figure
I have a windows forms, and when I hit submit, it'll use the Error

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.