CodeIgniter Forums
HTTP ERROR 500 you have any idea how fix such error???? first time on live server and - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: HTTP ERROR 500 you have any idea how fix such error???? first time on live server and (/showthread.php?tid=71090)

Pages: 1 2 3 4


HTTP ERROR 500 you have any idea how fix such error???? first time on live server and - lsepolis123 - 07-05-2018

This page isn’t working
www.yyyyyyy.com is currently unable to handle this request.
HTTP ERROR 500

you have any idea how fix such error???? first time on live server and fails... localhost works...


RE: HTTP ERROR 500 you have any idea how fix such error???? first time on live server and - lsepolis123 - 07-05-2018

localhost db is Europe but server is in USA

i tried import db from localhost to live and getting>>> // any hint of solution???

Error
SQL query:


--
-- Database: `yyy`
--

-- --------------------------------------------------------

--
-- Table structure for table `activities`
--

CREATE TABLE `activities` (
`id` int(11) NOT NULL,
`resource_id` int(11) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
`action` varchar(255) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`message` varchar(255) DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1
MySQL said: Documentation

#1067 - Invalid default value for 'created_date'


RE: HTTP ERROR 500 you have any idea how fix such error???? first time on live server and - Paradinight - 07-05-2018

(07-05-2018, 02:59 AM)lsepolis123 Wrote: This page isn’t working
www.yyyyyyy.com is currently unable to handle this request.
HTTP ERROR 500

you have any idea how fix such error???? first time on live server and fails... localhost works...

Read the error log. Without the error we can not help.


RE: HTTP ERROR 500 you have any idea how fix such error???? first time on live server and - lsepolis123 - 07-05-2018

where is this


RE: HTTP ERROR 500 you have any idea how fix such error???? first time on live server and - lsepolis123 - 07-05-2018

I DISABLED production mode ... and get:

An uncaught Exception was encountered
Type: RuntimeException

Message: Unable to locate the model you have specified: Subject_model

Filename: /home/lsepolis123/system/core/Loader.php

Line Number: 348

Backtrace:

File: /home/lsepolis123/public_html/index.php
Line: 321
Function: require_once


RE: HTTP ERROR 500 you have any idea how fix such error???? first time on live server and - lsepolis123 - 07-05-2018

/application
/system
/vendor

folders are out of /public_html one level up


RE: HTTP ERROR 500 you have any idea how fix such error???? first time on live server and - Paradinight - 07-05-2018

is the Subject_model.php in application/models?


RE: HTTP ERROR 500 you have any idea how fix such error???? first time on live server and - lsepolis123 - 07-05-2018

yes and is the first
I think sthg with model loading
any hint
???
autoload.php
$autoload['model'] = array('Subject_model', 'Activity_model', 'Video_model', 'User_model');

and another problem I can Not import Database from localhost to USA SERVER VPS
NEITHER WITH DATA NOR WITHOUT DATA
HAS ANYTHING DO WITH regional usa europe DATE...? In other words only name of database created in cPanel... in phpmyadmin can Not import...well?

Error
SQL query:


--
-- Database: `yyy`
--

-- --------------------------------------------------------

--
-- Table structure for table `activities`
--

CREATE TABLE `activities` (
`id` int(11) NOT NULL,
`resource_id` int(11) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
`action` varchar(255) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`message` varchar(255) DEFAULT NULL,
`created_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1
MySQL said: Documentation

#1067 - Invalid default value for 'created_date'


RE: HTTP ERROR 500 you have any idea how fix such error???? first time on live server and - Paradinight - 07-05-2018

Subject_model.php or subject_model.php?


RE: HTTP ERROR 500 you have any idea how fix such error???? first time on live server and - lsepolis123 - 07-05-2018

yes but in lowercase all in the name... also localhost work with OUT ANY problems...