Expected an object instance when accessing an instance property, but saw an expression with type null
$user_metadata = get_user_meta($user->ID, "", false);
Call to undeclared function \get_header()
(Did you mean \get_headers())
get_header();
Call to undeclared function \WC()
$states = WC()->countries->get_states("ES");
Call to undeclared function \wp_get_current_user()
(Did you mean \get_current_user())
$user = wp_get_current_user();
Call to method __construct
from undeclared class \Procedure
$procedure = new Procedure($_SESSION["email"]);
Variable $text
is undeclared
<h1 class="display-4"><?= $text["procedure_title"]; ?></h1>
Variable $text
is undeclared
<label for="last_name" class="col-4 col-form-label"><?= $text["lastname"]; ?></label>
Variable $text
is undeclared
<label for="nationality" class="col-4 col-form-label"><?= $text["nationality"]; ?></label>
Variable $text
is undeclared
<button name="submit" type="submit" class="btn btn-success"><?= $text["update"]; ?></button>
Variable $text
is undeclared
<label for="document_number" class="col-4 col-form-label"><?= $text["document_number"]; ?></label>
Call to undeclared function \get_footer()
get_footer();
Call to method get_document_types
from undeclared class \Procedure
$document_types = $procedure->get_document_types();
Variable $text
is undeclared
<a href="tramites.php" class="btn btn-secondary"><?= $text["back_to_list"]; ?></a>
Variable $text
is undeclared
<label for="document_type2" class="col-4 col-form-label"><?= $text["document_type"]; ?></label>
Call to method get_identification__types
from undeclared class \Procedure
$document_types = Procedure::get_identification__types();
Variable $text
is undeclared
<?= $text["process_success"]; ?>.
Call to undeclared function \get_user_meta()
$user_metadata = get_user_meta($user->ID, "", false);
Variable $text
is undeclared
<label for="first_name" class="col-4 col-form-label"><?= $text["name"]; ?></label>
Call to undeclared function \get_userdata()
$user = get_userdata(2);
Call to method update_user_info
from undeclared class \Procedure
$result = $procedure->update_user_info($user, $_POST);
Variable $text
is undeclared
<h1><?= $text["personal_data"]; ?></h1>
Variable $text
is undeclared
<label for="billing_address_1" class="col-4 col-form-label"><?= $text["address"]; ?></label>
Variable $text
is undeclared
<label for="billing_state" class="col-4 col-form-label"><?= $text["province"]; ?></label>
Variable $text
is undeclared
<label for="billing_phone" class="col-4 col-form-label"><?= $text["telephone"]; ?></label>
Variable $text
is undeclared
<a href="tramites.php" class="btn btn-secondary"><?= $text["back"]; ?></a>
Variable $text
is undeclared
<title><?= $text["site_name"] . " - " . $text["personal_data"]; ?></title>
Variable $text
is undeclared
<label for="billing_city" class="col-4 col-form-label"><?= $text["city"]; ?></label>
Variable $text
is undeclared
<label for="billing_postcode" class="col-4 col-form-label"><?= $text["postal_code"]; ?></label>
Define a constant instead of duplicating this literal "document_number" 3 times.
"document_number",
Define a constant instead of duplicating this literal "billing_email" 5 times.
"billing_email",
Remove this commented out code.
Define a constant instead of duplicating this literal "nationality" 3 times.
"nationality"
Define a constant instead of duplicating this literal "email" 3 times.
$_SESSION["email"] = $user->user_email;
Remove this commented out code.
Line exceeds 120 characters; contains 155 characters
<option value="<?= $key ?>" <?= ($key == $user_metadata["billing_state"][0]) ? "selected" : ""; ?> ><?= $value; ?></option>
Line exceeds 120 characters; contains 156 characters
<option value="<?= $key; ?>" <?= ($key == $user_metadata["document_type2"][0]) ? "selected" : ""; ?>><?= $value; ?></option>
Expected 1 space after closing parenthesis; found 0
<?php if (isset($result)): ?>
Expected 1 space after closing parenthesis; found 0
<?php foreach ($states as $key => $value): ?>
Expected 1 space after closing parenthesis; found 0
<?php foreach ($document_types as $key => $value): ?>
There are no issues that match your filters.