PHP Parse error: syntax error, unexpected ''< /ul>'' (T_CONSTANT_ENCAPSED_STRING) in /modules/php/php.module(80) : eval()'d code on line 4

PHP Parse error:  syntax error, unexpected

Encountered numerous PHP syntax errors in Drupal 7 while checking the error log file:

Drupal 7 error on PHP 7: Fatal error: Only variables can be passed by reference in C:\xampp\htdocs\xxx\sites\all\modules\commerce\modules\cart\commerce_cart.module on line 1344

A common error on Drupal 7 running on PHP 7: Fatal error: Only variables can be passed by reference in C:\xampp\htdocs\xxx\sites\all\modules\commerce\modules\cart\commerce_cart.module on line 1344

Fixes:

Drupal 7: How to print content but hide certain fields in TPL template files

Normally, templates come in default by printing all content fields by:

<?php print render($content); ?>

But if for some reason, you wish to display everything, yet you need to exclude or omit certain field values from displaying, you may want to use:

<?php

hide($content['field_image']);

print render($content);

?>

In above example this will output everything by default, yet hide the image of the node.

How to insert taxonomy term description in views, Global area

You may consider using PHP for this.

  1. Go to your Views
  2. Header > Add
  3. Select Global: PHP
  4. Use PHP snippet below to display the current term description
  5. You may use additional fields as necessary, arguments, arrays, etc.
<?php $current = taxonomy_term_load(arg(2)); ?>
<?php if ($current): ?>
    <div class="taxonomy-description">
        <?php echo $current->description; ?>
    </div>
<?php endif; ?>

Joomla Error This file is too large to upload - Changing file size maximum upload

Joomla version 3, encountering an error message when uploading some very large files via administrator backend:

Error
This file is too large to upload.

You may try any of the options listed below.

Updating the settings within Apache

(if you have access to the root folder of your server, or on local machine using WampServer or XAMPP). Check this page on finding your php.ini file in your webhosting. For local machines using XAMPP or WAMP (just do a simple file search on the application folder)

    Get reliable web hosting services

    Recurring donation

    Make Donation

    • Other: $

    Donate now

    Single donation

    Make Donation

    • Other: $

    Donate now