Forum Moderators: coopster

Message Too Old, No Replies

Syntax Error t encapsed string

         

citrine

11:06 am on Aug 20, 2010 (gmt 0)

10+ Year Member



Hi,

I am new to php and have been trying to know what went wrong with my php script suddenly.

This is the error that I get on my wordpress blog-
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/leon2007/public_html/wp-content/themes/agentpress/functions.php on line 12


<?php
// Start the engine
require_once(TEMPLATEPATH.'/lib/init.php');
require_once(STYLESHEETPATH.'/lib/init.php');

// Add new image sizes
add_image_size('Slider', 920, 300, TRUE);
add_image_size('Featured Properties', 290, 200, TRUE);
add_image_size('Featured Posts', 115, 115, TRUE);
add_image_size('Small Thumbnail', 110, 80, TRUE);

// Load script for jFlow slider
add_action('get_header', 'agentpress_load_scripts');
function agentpress_load_scripts() {
wp_enqueue_script('jflow', CHILD_URL.'/lib/js/jquery.flow.1.1.js', array('jquery'), '1.1', TRUE);
}

Please help.

rocknbil

4:31 pm on Aug 20, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome aboard citrine, I don't have experience with this specific plugin so can't tell you specifically what's wrong but

T_CONSTANT_ENCAPSED_STRING

Tells me that the first place to look is probably that the constant CHILD_URL is not defined.

citrine

5:27 pm on Aug 20, 2010 (gmt 0)

10+ Year Member



This is functions.php, where do I find CHILD_URL?

Thanks:)