PDA


View Full Version : Header error when editing templates


attroll
09-22-2005, 01:40 PM
Powered by vBadvanced CMPS v2.0.0 (vB 3.5)

I have upgraded to the latest version of CMPS. Everything is working except when I try to edit a template from my CMPS. I get the following error.

Warning: Cannot modify header information - headers already sent by (output started at /home/atphotos/public_html/forum/includes/adminfunctions.php:223) in /admincp/vba_cmps_admin.php on line 2226

Brian
09-22-2005, 02:48 PM
Try looking in your vba_cmps_admin.php file for this code:
header('Location: template.php?' . iif($template['templateid'], 'do=edit&templateid=' . $template['templateid'], 'do=add&dostyleid=' . $thisstyleid . '&title=' . $temptitle));

Replace with:
print_cp_redirect('template.php?' . iif($template['templateid'], 'do=edit&templateid=' . $template['templateid'], 'do=add&dostyleid=' . $thisstyleid . '&title=' . $temptitle));

And that should take care of the problem.

attroll
09-23-2005, 01:44 AM
That did it Brian. Thanks.