Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I try to make my files as small as possible and wonder why the following php code works in my Wordpress Installation
<?php
$mark_count = get_post_meta($post->ID, '_wpb_post_mark_count', true);
?>
and the following (same) php code not
<?php $mark_count = get_post_meta($post->ID, '_wpb_post_mark_count', true); ?>
When i put the code in one row, my site gets blank. No Error or else in the firebug console. It is a new WP Installation and there is no conflict between plugins. The installation is on a Apache Server and runs the latest PHP 7 version. Any idea how to fix this problem or why this happens?
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I am working on a site http://www.lemongrasshouse.com.au/ i am changing code inside /public_html/lemongrasshouse.com.au/catalog/view/theme/lemongrasshouse/template/common/footer.twig
but its not affecting the site.
Can anyone help me in this matter
Thanks
Somdeb
Have you also edited that twig file via the built in editor in Design > Theme Editor? If so, it will use that one (which is stored in the database) rather than the file itself.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I have a webpage weblup(dot)net/templates/template3 (replace (dot) with a '.') and it just crashes when I run it. It was working fine not long ago but I have no clue why it's crashing all of a sudden. The biggest change before this happened was that I changed a picture.
Your Website have error in logo.png and it's to big to load in website. (16620 x 9333 pixels).
Solution: Change Your Image and resolution Image
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
Helo there...
I inserted an Update Record form in Dreamweaver to update the category data on MySQL.
The line of coding below is what is giving me the problem.
<?php echo htmlentities($row_categoryedit['strdiscription'], ENT_COMPAT, 'uft-8'); ?>
If it is included the page gives me an internal server error.
If it is excluded the page works, but it dose not update the record.
Also when I preview it live it shows that there is errors on these 2 lines...
if (isset()) {
$varCategory_categoryedit = ;
Am I missing something or doing something wrong?
you must have a variable in isset() function.
example:
if(!isset($varCategory_categoryedit)){
$varCategory_categoryedit = "1";
}
http://php.net/manual/en/function.isset.php
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
Putty executes my php script without error but no results. This script is supposed to run a query on the database and the send those results as excel file. Does anyone know what could cause this?
Try prepending your script with:
<?php
error_reporting(E_ALL);
?>
to output all errors. Failing that, you could put some debug in the code to find where it keeps failing.
Sometimes there is something in the PHP error log (/var/log/php_errors on Centos).
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I started learning PHP today and I've been trying to make a "Hello World" program, but when I type the code into the editor it does not appear in the browser, it's commented. What might be the issue ? I have XAMPP installed, and enabled Apache.
Code: http://i.imgur.com/khOPvSD.png
Browser: http://i.imgur.com/uQd25Qb.png
You are having
<?echo
Change to <?php
Every code that is PHP must be within the <?php ?> tags.