Welcome Guest, Not a member yet? Register   Sign In
An Error Was Encountered Unable to load the requested language file: language/imglib_lang.php
#1

[eluser]Ki[/eluser]
Hi,
I have been using CI for over a year now and consider myself to be an advanceduser, but can't get passed this problem.
I am getting
An Error Was Encountered
Unable to load the requested language file: language/imglib_lang.php

When I execute this in my controller (this is actually in a model that is loaded in a controller)
Code:
$config['image_library'] = 'gd2';
                    
                    //RESIZE ORIGINAL FILE
                    $config['source_image'] = $temptarget;
                    $config['new_image'] = $directory."/". $i."_G.gif";
                    $config['maintain_ratio'] = TRUE;
                    $config['create_thumb'] = TRUE;
                    $config['quality'] = 80;
                    $config['width'] = 600;
                    $config['height'] = 600;
                    $this->load->library('image_lib', $config);
                    $this->image_lib->resize();
                    $this->image_lib->clear();
                    
                    //ADD WATERMARK
                    $config['source_image'] = $directory."/". $i."_G.gif";
                    $config['wm_type'] = 'overlay';
                    $config['wm_overlay_path'] = './uploads/overlay.gif';
                    $config['wm_opacity'] = 80;
                    $config['wm_x_transp'] = 4;
                    $config['wm_y_transp'] = 4;
                    $config['wm_vrt_alignment'] = 'top';
                    $config['wm_hor_alignment'] = 'right';
                    
                    $this->image_lib->initialize($config);
                    $this->image_lib->watermark();

When I remove the watermark part, it runs fine...
Does anybody have an idea what this error means?
#2

[eluser]Unknown[/eluser]
I have the same problem...
This code works me well on my local machine, but it write the same error on the server.
Isn't this problem connected with gd2 library or something like that...?

Thanks,

Matous




Theme © iAndrew 2016 - Forum software by © MyBB