[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3824: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3826: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3827: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3828: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
View topic - New code error I can't figure out • SSWT Internet Marketing Forum •

 

This Forum Has Been Archived
*Click Here To Visit The NEW Forum*

 

 


New code error I can't figure out

Designing your own website? Need help? Ask your questions and share your favorite resources here... Tables, Forms, Color Scheme & Layout, Scripts, Programs & Resources

Moderators: angienewton, tknoppe, terrapin719, lisamariemary

New code error I can't figure out

Postby MichelleS » Thu Jun 11, 2009 9:34 pm

Hi all,
I know it's been forever since I've posted, but I've been around, and silently learning again. I've been working on a few projects and just ran into my first PHP coding error I can't figure out.

I am working on a blog site, and have been changing a few things around. I was doing pretty good, till I went to change a title from "top 10 web hosting" to "Work at Home Resources".

This is the error I'm getting: Parse error: syntax error, unexpected T_LNUMBER, expecting '(' in /home/tomorrow/public_html/wp-content/themes/HostingPress/functions.php on line 2

And this is the coding:

<?php
function work at home resources(){
include (TEMPLATEPATH . "/workathomeresources.php");}
function featured(){
include (TEMPLATEPATH . "/FeaturedNews.php");}
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h4>',
'after_title' => '</h4>',
));
?>

Okay, I made another change, and now have a third error. The other two errors are gone, so I know I'm working on the right line. Now I'm getting Parse error: syntax error, unexpected '-', expecting '(' in /home/tomorrow/public_html/wp-content/themes/HostingPress/functions.php on line 2 and the only thing I have change is line two, so that it now reads function work-at-home-resources(){

Is there a file somewhere that I am missing in editing?

I'm not exactly sure what I am forgetting to put back in, or what I'm leaving out on line 2. Any ideas or suggestions would be awesome!

Oh, and if your curious, and you want to see where and what I've been up to lately, you can check out our

This was edited after I fixed one error and got a different one.
MichelleS
 
Posts: 4
Joined: Sun Apr 05, 2009 8:44 am
Location: Greeneville, TN

Postby terrapin719 » Thu Jun 11, 2009 10:38 pm

It looks like you've got something interfering with your theme. Switch to the default theme for a moment and see if your troubles go away before you get to frustrated over it.
User avatar
terrapin719
Elite Member
 
Posts: 1082
Joined: Thu Jul 07, 2005 2:15 pm
Location: Floating away.....

Postby scottcarey » Thu Jun 11, 2009 11:27 pm

You can't put '-' in the name of the function. It has to be the underscore '_' instead. PHP will interpret the dash as a minus sign. Replace the each '-' with '_' and I think that should solve it.
scottcarey
 
Posts: 1
Joined: Thu Jun 11, 2009 2:12 pm

Postby MichelleS » Sat Jun 13, 2009 6:47 am

MichelleS
 
Posts: 4
Joined: Sun Apr 05, 2009 8:44 am
Location: Greeneville, TN

Postby MichelleS » Sat Jun 13, 2009 7:07 am

MichelleS
 
Posts: 4
Joined: Sun Apr 05, 2009 8:44 am
Location: Greeneville, TN

Postby tknoppe » Sat Jun 13, 2009 7:34 am

User avatar
tknoppe
Elite Member
 
Posts: 1026
Joined: Sun Sep 14, 2008 11:36 am
Location: Missouri, USA

Postby terrapin719 » Sun Jun 14, 2009 1:14 pm

User avatar
terrapin719
Elite Member
 
Posts: 1082
Joined: Thu Jul 07, 2005 2:15 pm
Location: Floating away.....


Return to HTML, Web Design & Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron