Latest News: (loading..)

Archived

This topic is now archived and is closed to further replies.

shamanix

Changing default template breaks the shop (Missing Template Files?)

5 posts in this topic

If you use admin: templates -> templates to change the default template (to the table base one) then you receive the following warnings in the admin section

Notice: Undefined index: configuration in /web/admin/includes/applications/templates/templates.php on line 45

Warning: Cannot modify header information - headers already sent by (output started at /web/admin/includes/applications/templates/templates.php:45) in /web/admin/includes/functions/general.php on line 46

 

It still changes the default template but you need to navigate off the screen and back to see the change.

When you go to the shop front you will see plenty of errors all nicely laid out in a table format. I gather this is becaue there are some files missing from the template directory. Did my installation silently fail or are they missing from all installs.

 

Sample Error received when viewing the shop after changing the default template is:

Warning: include(templates/table_based/modules/boxes/categories.php) [function.include]: failed to open stream: No such file or directory in /web/templates/table_based.php on line 108

 

 

Thanks

Jandy

Share this post


Link to post
Share on other sites

Hi, i an error changing the template on the admin side.

 

Error reporting on the admin side:

 

( ! ) Notice: Undefined index: configuration in /var/www/oscommerce/admin/includes/applications/templates/templates.php on line 45

Call Stack

# Time Memory Function Location

1 0.0003 68932 {main}( ) ../index.php:0

2 0.1589 2103116 osC_Template_Admin::setup( ) ../index.php:39

3 0.1590 2103760 osC_Application_Templates->__construct( ) ../template.php:31

 

and the second error:

 

( ! ) Warning: Cannot modify header information - headers already sent by (output started at /var/www/oscommerce/admin/includes/applications/templates/templates.php:45) in /var/www/oscommerce/admin/includes/functions/general.php on line 46

Call Stack

# Time Memory Function Location

1 0.0003 68932 {main}( ) ../index.php:0

2 0.1589 2103116 osC_Template_Admin::setup( ) ../index.php:39

3 0.1590 2103760 osC_Application_Templates->__construct( ) ../template.php:31

4 0.1787 2112052 osc_redirect_admin( ) ../templates.php:53

5 0.1787 2112052 header ( ) ../general.php:46

Share this post


Link to post
Share on other sites

Problem solved....

 

to anyone that have the same problem:

 

you have access to php.ini, set:

 

output_buffering=on;

 

restart your webserver and its done.

Share this post


Link to post
Share on other sites

Hi,

 

is there a solution possible if u habe no acces to the php.ini on the webserver?

Share this post


Link to post
Share on other sites