phplist

NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1


View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006682phplist applicationInstallationpublic21-06-06 06:2215-04-10 23:32
ReporterRothgar 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformUnixOSFreeBSDOS Version5.3
Product Version2.10.2 
Target VersionFixed in Version2.10.11 
Summary0006682: PHP Short Tags
DescriptionHi Guys,

Just installed PHP list and ran into a few problems since we have disabled PHP short tags to adopt the new standardization. Since PHP short tags can conflict with XML's short open tag we have disabled them.

For the most part PHP list seems like it's coded well and not using short tags, however there are a lot of perhaps updated pages which are now using short tags.

I have gone through what I found and changed them and for the most part seems to be running fine. Below are my changes so that perhaps they can be fixed for a new release and standardized to not use half short tags and half not.

EDIT "admin/massunconfirm.php" TO <?php

commonlib FOLDER
EDIT "/admin/commonlib/lib/accesscheck.php" <?php
EDIT "/admin/commonlib/lib/errorlib.php" <?php
EDIT "/admin/commonlib/lib/interfacelib.php" <?php
EDIT "/admin/commonlib/lib/magic_quotes.php" <?php
EDIT "/admin/commonlib/lib/oldphp_vars.php" <?php
EDIT "/admin/commonlib/lib/userlib.php" <?php

EDIT "/admin/commonlib/pages/attributes.php" TO <?php
EDIT "/admin/commonlib/pages/dbcheck.php" TO <?php

EDIT "/admin/commonlib/pages/importcsv.php"
LINE 718 CHANGE <?= TO <?php echo

EDIT "/admin/commonlib/pages/usermgt.php" TO <?php

EDIT "/admin/commonlib/pages/users.php"
LINE 324 CHANGE <?= TO <?php echo
LINE 326 CHANGE <?= TO <?php echo
LINE 327 CHANGE <?= TO <?php echo
LINE 333 CHANGE <?= TO <?php echo

Regards,
Jason
Steps To ReproduceDefault Install of PHPlist
Additional InformationReplace all instances of "<?" with "<?php" and all instances of "<?=" with "<?php echo" in the following files I have found so far:

EDIT "admin/massunconfirm.php" TO <?php

commonlib FOLDER
EDIT "/admin/commonlib/lib/accesscheck.php" <?php
EDIT "/admin/commonlib/lib/errorlib.php" <?php
EDIT "/admin/commonlib/lib/interfacelib.php" <?php
EDIT "/admin/commonlib/lib/magic_quotes.php" <?php
EDIT "/admin/commonlib/lib/oldphp_vars.php" <?php
EDIT "/admin/commonlib/lib/userlib.php" <?php

EDIT "/admin/commonlib/pages/attributes.php" TO <?php
EDIT "/admin/commonlib/pages/dbcheck.php" TO <?php

EDIT "/admin/commonlib/pages/importcsv.php"
LINE 718 CHANGE <?= TO <?php echo

EDIT "/admin/commonlib/pages/usermgt.php" TO <?php

EDIT "/admin/commonlib/pages/users.php"
LINE 324 CHANGE <?= TO <?php echo
LINE 326 CHANGE <?= TO <?php echo
LINE 327 CHANGE <?= TO <?php echo
LINE 333 CHANGE <?= TO <?php echo

 
TagsNo tags attached.
Attached Files

- Relationships
related to 0006419resolveduser1822 Short tags are not supported on everywhere 
related to 0001175resolvedmichiel Use of short tags 
has duplicate 0012821resolvedmichiel Script uses PHP short tags 

-  Notes
(0014634)
Rothgar (reporter)
21-06-06 06:28

Related to 0006419.
(0014683)
Rothgar (reporter)
22-06-06 05:37

Also edit admin/footer.inc.php and change <?= TO <?php echo
(0014900)
Rothgar (reporter)
29-06-06 04:01

Another edit:
admin/commonlib/pages/attributes.php
LINE 297
CHANGE <?= TO <?php echo
(0045672)
user3543
23-04-08 19:00

Posted: 9:13am, Wed 23 Apr, 2008 by codeway


We recently upgraded to PHP5 and to the latest version of phpList, but the phpList displayed a screenful of PHP scripts instead of the user subscription pages.

The solution was to change "<? " to "<?php " on the first line of magic_quotes.php and userlib.php.
(0045673)
user3543
23-04-08 19:07

related to:
0008630
0006419
0012821
0001175
(0050910)
h2b2 (manager)
15-04-10 23:30

I believe this has already been taken care of in one of the previous releases. Marking as resolved in 2.10.11.


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker