Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a wordpress site and I have the following code in my functions.php thats is causing the error:
Parse error: syntax error, unexpected '=', expecting ')'
PHP code:
function va_child_add_fax_field( $args ) {
$args['custom_fields']['fax'] = array( 'internal_key' => 'app_fax' );
return $args;
}
Please help
add_filter( 'va_csv_importer_args', 'va_child_add_fax_field' );
$args['custom_fields']['fax'] = array( 'internal_key' => 'app_fax' );
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Parse error: syntax error, unexpected T_IS_IDENTICAL in /home/vvcoutur/public_html/wp-content/themes/stoconverge/header.php on line 54
This is line 54:
<?php ======= COOKIE DEMO OPTIONS ======= //wp_enqueue_style('skins', get_template_directory_uri(). '/admin/layouts/' . $data['alt_stylesheet'] ); ?>
What am i getting wrong
======= COOKIE DEMO OPTIONS =======
should be a comment it isn't and your code is commented out. Try this :
<?php /**======= COOKIE DEMO OPTIONS =======**/ wp_enqueue_style('skins', get_template_directory_uri(). '/admin/layouts/' . $data['alt_stylesheet'] ); ?>
With better formatting and using an IDE you would have seen this easily.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have got this error on wordpress sites. I dont know how to fix it. Please help
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in
/home/hornyfus/public_html/wp-content/themes/wpxtubewhitetheme/header.php
on line 22
heres the line 22 in my head.php
echo ' | ' . sprintf( __( 'Page %s',d 'wpxtube_theme' ), max( $paged, $page ) ); ?></title>
'Page %s',d 'wpxtube_theme'
Take out the d.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Can anyone tell me what is wrong with the below shorthand if/else code?
<div class="holder <?php echo (!empty($bid_info['sale_price'] ? 'holder7' : 'holder4'); ?>">
According to this page it seems right!?
Though I am getting the below error:
Parse error: syntax error, unexpected '?', expecting ')' in ...........
Missing ) before the ?
<?php echo (!empty($bid_info['sale_price']) ? 'holder7' : 'holder4'); ?>
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Tried a few things, I am sure this is a minor error but I have been staring at it for ages!
if (isset ($_GET['id']) { $product_id = strip_tags($_GET['id']); }
Can anyone see what is wrong?
You're missing a ):
if (isset ($_GET['id'])) { $product_id = strip_tags($_GET['id']); }
^
you are missing first started small bracket.
(isset ($_GET['id']) -- here ) should be closed like.
if (isset ($_GET['id'])) { $product_id = strip_tags($_GET['id']); }
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I saw here about my problem PHP Script to Edit DNS Records in CPanel but When I try to use the dnsclass.php.
I can create a object like this:
$zones = new zone_records("cpaneluser", "pass", "website_to_login", "domain_of_records")
But I can't use this:
$zones->addrecord($type, $target, $name, $ttl)
I'm having this problem :
Parse error: syntax error, unexpected T_VARIABLE in /home/mcser325/public_html/test.php
My code:
include 'classdns.php';
$zones = new zone_records("**", "**", "**", "**")
$zones->addrecord("**", "**", "**", "**")
There is no semicolon at the end of the statement which is causing the error.