Pretty Topic

Use of relative paths causes error on some shared hosts - Pretty Topic

Use of relative paths causes error on some shared hosts

by Blazeflack » Mon Feb 09, 2015 5:01 pm

In the file dmzx/prettytopic/styles/prosilver/template/event/overall_header_head_append.html you see the following include:

Code: Select all

<!-- INCLUDECSS ../theme/prettytopic.css -->


This can cause the following error on some shared hosts:

Code: Select all

Warning: file_exists(): open_basedir restriction in effect. File(./../theme/prettytopic.css) is not within the allowed path(s):


Since INCLUDECSS automatically looks in the theme folder, you can change it to read:

Code: Select all

<!-- INCLUDECSS prettytopic.css -->

which removes the issue for people on shared hosts.
Blazeflack
Registered User
Posts: 50
Joined: Sat May 16, 2009 2:00 pm
Contact: