Helper file cant load in codeigniter subdomain - codeigniter

i already moved my project into subdomain on a live server, and i found this error
Unable to load the requested file: helpers/app_helper.php
seems like the helper file can't load in a controller.
and here is my base url config:
$config['base_url'] = 'http://log.mysite.co.id';
what i missed? is there any different configuration between main domain and subdomain setting?

Related

move codeigniter project from localhost to live server

Trying to move the codeigniter project from laptop server to live server. Uploaded the files in Public_HTML and I modified the config.php, base_url, .htaccess as needed and also upgrade the Database... when i run project default controller called correctly when other controller can not call this message show 404 Page Not Found. config.php and .htaccess files update as correct information. This same project run successfully on Local or Desktop server but produce Error on live server 404 Page Not Found home controller (default controller) call but other controller not call.
What is your server? And whats your configuration file?
Make sure you enable mod rewite if you are using apache
a2enmod rewrite
Have you removed index.php from url? Try to access another controller like this.
<domain>/index.php/<controllername>

404 page not found: error while running localhost//ci/ in codeigniter 3/1/2

I am a beginner in codeigniter 3.1.2.
While I am running localhost//ci it shows 404 page not found error. ci is my folder name.
What should I do?
May be you gets 404 error because of Controller.
Defining a Default Controller
CodeIgniter can be told to load a default controller when a URI is not present, as will be the case when only your site root URL is requested. To specify a default controller, open your application/config/routes.php file and set this variable:
$route['default_controller'] = 'blog';
Where ‘blog’ is the name of the controller class you want used. If you now load your main index.php file without specifying any URI segments you’ll see your “Hello World” message by default.
For more information, please refer to the “Reserved Routes” section of the URI Routing documentation.
or may be there .htaccess problem
check link for more https://www.sitepoint.com/community/t/404-page-not-found-the-page-you-requested-was-not-found-codeigniter-project/223800

Trouble accessing a custom form on magento(multiple website) from url

I created a custom web form for a magento website, on a local server which has only one website setup, i could access the form using the URL but when i upload the module to the server which has multiple website setup, i cannot access the form using the URl ,
for e.g on my local server i could access the form as
http://localhost/cars/index.php/surcontest-contest
but when i upload the module e.g dev.test.org on the server(it has multiple website setup, more than 50 sites ) i could not access the form
http://dev.test.org/surcontest-contest (gives me a 404 error)
how would i access the module, how would i find out about the url to access the form.
Any help will be greatly appreciated.
Thanking you in advance.
1) clean cache to make sure that module installed (check it in admin or database)
2) check that url rewrites enabled and works (can you access some category or product page without index.php ?)
If your default URL is http://www.test.org/ then to access multiple sub domain you should enable from your domain panel by providing host stetting
Hostname=*.test.org, address=, Record Type=A(address)
Also, on your server add sub domain dev.test.org.
It will create dev folder in the public_html folder in file manager.
You should copy index.php and .htaccess file in that follows the magento multiple web site steps see the link
http://inchoo.net/ecommerce/magento/how-to-set-multiple-websites-with-multiple-store-views-in-magento/

How to set up Dreamweaver to use CodeIgniter?

I am using dreamweaver cs5 and xampp. I created a folder name CI in htdoc, where all my codeigniter files and folders are , i.e application, system , user_guide, license.txt, index.php and .htaccess(which is blank).
My dreamweaver set up is :
Site
Site Name: codeIgniter Local Site Folder: C:\xampp\htdocs\CI
Servers
ServerName: codeIgniter Connect using: Local/Network
Server Folder: c:\xampp\htdocs\CI\ Web URL: http://localhost/site/
and i unticked remote server and ticked testing server.
My codeigniter set up is:
$config['base_url'] = 'http://localhost/site/';
$autoload['libraries'] = array('database');
and created site.php in the controller.
Error i am getting in dreamweaver is :
Dynamically-related files could not be resolved because the site defination is not
correct for this server.Retry|Setup.
Also when i am trying to view it as Live View or in browser it is taking me to
localhost/site/application/controllers/site.php , which saying object not found
But everything is fine using notepad++ though and i can see nothing is wrong in setting up codeigniter
Your weburl must match your site root, change your weburl and $config['base_url'] to http://localhost/CI/ and also check that your server model is set to php/mysql.

Codeigniter in shared ssl

I am not able to get codeigniter to work on my shared ssl url.
for example, on
https://nimrod.eukhosting.net/~nadavwei/myatar.co.cc/aaa
i get a 404 error
aaa is just a demo controller that should echo test
only the homepage - with no controller in the url - works
https://nimrod.eukhosting.net/~nadavwei/myatar.co.cc/
btw, i am using .htaccess
thanks
It looks like your provider is disabling .htaccess for the https server.
I am able to see your website here: https://nimrod.eukhosting.net/~nadavwei/myatar.co.cc/index.php/categories/26
But it won't work here: https://nimrod.eukhosting.net/~nadavwei/myatar.co.cc/categories/26
My guess is that their setup allows or disallows .htaccess based on the virtual domain, and since you are not using your virtual domain, it is being disabled. You should contact your hosting provider and see if they know or can provide more information.
You can also double check your .htaccess file, in case there is something about it specifying the virtual domain.
Also, as an FYI, you are going to have to modify your CodeIgniter configuration so that it dynamically the full path and turns on or off the index.php part of your URL based on whether or not the user is arriving via HTTPS:
$is_https = !empty($_SERVER['HTTPS']);
$config['base_url'] = $is_https ?
'https://nimrod.eukhosting.net/~nadavwei/myatar.co.cc/' :
'http://myatar.co.cc/';
$config['index_page'] = $is_https ? 'index.php' : '';
This should toggle the modes as necessary.

Resources