Post by ibarts » Tue Mar 22, 2016 8:57 pm

hi
having trouble moving from xampp to web-server (his might be answered before, i'm newbee to all this)
gettting this error:

Warning: require_once(public_html/shop/system/startup.php): failed to open stream: No such file or directory in /home/virtual/ibarts.dk/public_html/shop/index.php on line 17

Fatal error: require_once(): Failed opening required 'public_html/shop/system/startup.php' (include_path='.:/usr/local/php/lib/php') in /home/virtual/ibarts.dk/public_html/shop/index.php on line 17

the problem is guess is the way i altered the config.php file:
<?php
// HTTP
define('HTTP_SERVER', 'http://www.ibarts.dk/shop/');

// HTTPS
define('HTTPS_SERVER', 'http://www.ibarts.dk/shop/');

// DIR
define('DIR_APPLICATION', 'public_html/shop/catalog/');
define('DIR_SYSTEM', 'public_html/shop/system/');
define('DIR_LANGUAGE', 'public_html/shop/catalog/language/');
define('DIR_TEMPLATE', 'public_html/shop/catalog/view/theme/');
define('DIR_CONFIG', 'public_html/shop/system/config/');
define('DIR_IMAGE', 'public_html/shop/image/');
define('DIR_CACHE', 'public_html/shop/system/cache/');
define('DIR_DOWNLOAD', 'public_html/shop/system/download/');
define('DIR_UPLOAD', 'public_html/shop/system/upload/');
define('DIR_MODIFICATION', 'public_html/shop/system/modification/');
define('DIR_LOGS', 'public_html/shop/system/logs/');


it would be nice to know how my config.php should look :) thanks
attachment filestructure at http://www.ibarts.dk:

Attachments

ScreenHunter_27 Mar. 22 13.51.jpg

ScreenHunter_27 Mar. 22 13.51.jpg (43.46 KiB) Viewed 3727 times


Newbie

Posts

Joined
Tue Mar 22, 2016 7:22 pm

Post by kirkhall » Wed Mar 23, 2016 1:52 am

At most of the popular web hosts the below section of your config

Code: Select all

// DIR
define('DIR_APPLICATION', 'public_html/shop/catalog/');
define('DIR_SYSTEM', 'public_html/shop/system/');
define('DIR_LANGUAGE', 'public_html/shop/catalog/language/');
define('DIR_TEMPLATE', 'public_html/shop/catalog/view/theme/');
define('DIR_CONFIG', 'public_html/shop/system/config/');
define('DIR_IMAGE', 'public_html/shop/image/');
define('DIR_CACHE', 'public_html/shop/system/cache/');
define('DIR_DOWNLOAD', 'public_html/shop/system/download/');
define('DIR_UPLOAD', 'public_html/shop/system/upload/');
define('DIR_MODIFICATION', 'public_html/shop/system/modification/');
define('DIR_LOGS', 'public_html/shop/system/logs/');
the paths would be more like
// DIR
define('DIR_APPLICATION', 'home/username/public_html/shop/catalog/');
define('DIR_SYSTEM', 'home/username/public_html/shop/system/');
define('DIR_LANGUAGE', 'home/username/public_html/shop/catalog/language/');
define('DIR_TEMPLATE', 'home/username/public_html/shop/catalog/view/theme/');
define('DIR_CONFIG', home/username/'public_html/shop/system/config/');
define('DIR_IMAGE', 'home/username/public_html/shop/image/');
define('DIR_CACHE', home/username/'public_html/shop/system/cache/');
define('DIR_DOWNLOAD', 'home/username/public_html/shop/system/download/');
define('DIR_UPLOAD', 'home/username/public_html/shop/system/upload/');
define('DIR_MODIFICATION', home/username/'public_html/shop/system/modification/');
define('DIR_LOGS', 'home/username/public_html/shop/system/logs/');

Active Member

Posts

Joined
Thu May 22, 2014 11:31 am
Location - Missouri, USA

Post by Randem » Fri Mar 25, 2016 4:07 am

Hi ibarts,

Perhaps this can help - Moving Your OpenCart Store to Another Server

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by ibarts » Fri Mar 25, 2016 6:00 pm

kirkhall wrote:At most of the popular web hosts the below section of your config

Code: Select all

// DIR
define('DIR_APPLICATION', 'public_html/shop/catalog/');
define('DIR_SYSTEM', 'public_html/shop/system/');
define('DIR_LANGUAGE', 'public_html/shop/catalog/language/');
define('DIR_TEMPLATE', 'public_html/shop/catalog/view/theme/');
define('DIR_CONFIG', 'public_html/shop/system/config/');
define('DIR_IMAGE', 'public_html/shop/image/');
define('DIR_CACHE', 'public_html/shop/system/cache/');
define('DIR_DOWNLOAD', 'public_html/shop/system/download/');
define('DIR_UPLOAD', 'public_html/shop/system/upload/');
define('DIR_MODIFICATION', 'public_html/shop/system/modification/');
define('DIR_LOGS', 'public_html/shop/system/logs/');
the paths would be more like
// DIR
define('DIR_APPLICATION', 'home/username/public_html/shop/catalog/');
define('DIR_SYSTEM', 'home/username/public_html/shop/system/');
define('DIR_LANGUAGE', 'home/username/public_html/shop/catalog/language/');
define('DIR_TEMPLATE', 'home/username/public_html/shop/catalog/view/theme/');
define('DIR_CONFIG', home/username/'public_html/shop/system/config/');
define('DIR_IMAGE', 'home/username/public_html/shop/image/');
define('DIR_CACHE', home/username/'public_html/shop/system/cache/');
define('DIR_DOWNLOAD', 'home/username/public_html/shop/system/download/');
define('DIR_UPLOAD', 'home/username/public_html/shop/system/upload/');
define('DIR_MODIFICATION', home/username/'public_html/shop/system/modification/');
define('DIR_LOGS', 'home/username/public_html/shop/system/logs/');

i tryed this:
// DIR
define('DIR_APPLICATION', 'home/username/public_html/shop/catalog/');
define('DIR_SYSTEM', 'home/username/public_html/shop/system/');
define('DIR_LANGUAGE', 'home/username/public_html/shop/catalog/language/');
define('DIR_TEMPLATE', 'home/username/public_html/shop/catalog/view/theme/');
define('DIR_CONFIG', home/username/public_html/shop/system/config/');
define('DIR_IMAGE', 'home/username/public_html/shop/image/');
define('DIR_CACHE', home/username/public_html/shop/system/cache/');
define('DIR_DOWNLOAD', 'home/username/public_html/shop/system/download/');
define('DIR_UPLOAD', 'home/username/public_html/shop/system/upload/');
define('DIR_MODIFICATION', home/username/public_html/shop/system/modification/');
define('DIR_LOGS', 'home/username/public_html/shop/system/logs/');

which gave: Parse error: syntax error, unexpected 'DIR_IMAGE' (T_STRING) in /home/virtual/ibarts.dk/public_html/shop/config.php on line 14

i think i am getting further :)



thanks

Newbie

Posts

Joined
Tue Mar 22, 2016 7:22 pm

Post by OSWorX » Fri Mar 25, 2016 6:37 pm

Because you have one line above this error:

Code: Select all

define('DIR_CONFIG', home/username/public_html/shop/system/config/');
Before home/username a ' is missing!

Since many years I am arguing for creating the configs like that (which would be much simplier when moving/editing) - frontend config (similiar goes for the admin config):

Code: Select all

// HTTP
define('HTTP_SERVER', 'https://MYSHOP.com/');

// HTTPS
define('HTTPS_SERVER', 'https://MYSHOP.com/');

$dir = 'public_html/shop/';

// DIR
define( 'DIR_APPLICATION', $dir . 'catalog/' );
define( 'DIR_SYSTEM', $dir . 'system/' );
define( 'DIR_LANGUAGE', $dir . 'catalog/language/' );
define( 'DIR_TEMPLATE', $dir . 'catalog/view/theme/' );
define( 'DIR_CONFIG', $dir . 'system/config/' );
define( 'DIR_IMAGE', $dir . 'image/' );
define( 'DIR_CACHE', $dir . 'system/storage/cache/' );
define( 'DIR_DOWNLOAD', $dir . 'system/storage/download/' );
define( 'DIR_LOGS', $dir . 'system/storage/logs/' );
define( 'DIR_MODIFICATION', $dir . 'system/storage/modification/' );
define( 'DIR_UPLOAD', $dir . 'system/storage/upload/' );
With such you would have to edit only 1 line and would avoid stupid errors like that.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by Randem » Fri Mar 25, 2016 6:43 pm

If you just installed OpenCart on the new server it would create everything in your config file for you.

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by OSWorX » Fri Mar 25, 2016 7:19 pm

Randem wrote:If you just installed OpenCart on the new server it would create everything in your config file for you.
Basically true, but if you are moving and have to edit the configs, it would be easier if only 1 line has to be edited.
But currently I (as developer and maintainer of a few sites) have to edit each week around 200 lines - boring!

User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by ibarts » Wed Apr 06, 2016 3:21 pm

have made an installation on the web-server it gave a config.php with statements like this
define('DIR_APPLICATION', '/home/virtual/ibarts.dk/public_html/catalog/');
it was the home/virtual which i could not figure out. afterwards i moved all the files, i localy have altered, and every thing is working ok

thanks all :)

Newbie

Posts

Joined
Tue Mar 22, 2016 7:22 pm

Post by Randem » Wed Apr 06, 2016 3:35 pm

Great, Simple as easy. Let the software do the work for you 8)

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am
Who is online

Users browsing this forum: No registered users and 10 guests