Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged

1

Installing Joomla in a subdomain should make no difference as far as the PHP version is concerned. The likely explanation is that there is a directive in the .htaccess file overriding the default PHP version but you have already checked this. To fault find this issue, I recommend: Creating a phpinfo.php file in the root folder of the subdomain and ...


0

I gave up on this in the end and requested the client manually add the placeholder image when creating the post. Thank you all for your contributions.


1

I found the answer, and thanks to Matthias' answer and P.T.'s answer @ Using mklink command with network drives. I did the second suggestion of the post first: fsutil behavior set SymlinkEvaluation L2R:1 ...so I'm not sure if it will work without it. Like he said, just create 2 symlinks in Windows! :D mklink /D D:\shareLink \\network\share mklink /J D:\...


0

You can follow the instructions shown here, https://www.joomlashack.com/blog/joomla/remove-links-from-login/ that shows you how to remove it from the Login form displays, which is not exactly the page you want to hide it on however it does show you the technique. This other link tells you a bit more about your specific requirement, https://forum.joomla.org/...


0

In the Global Configuration, you could try setting the Database Type to MySQL (PDO) at least as a temporary fault finding measure. Check in cPanel (or similar) that the required PHP extensions are being loaded. For example, Joomla runs fine for me with the following extensions loaded on PHP 7.2:


1

Another idea is to initialize an $image variable earlier in your script like so: $image = $item->image ? $item->image : 'images/placeholder.jpg'; The $image will get the value of the $item->image if it's set, or the placeholder file path you set. Then you use the $image variable in place of the $item->image in your script. *You won't need the ...


1

Your are missing brackets around else: <?php if ($item->image) { ?> ... <?php } else { ?> ... <?php } ?> You may also give alternative syntax a try, see if it's more readable to you: <?php if ($item->image) : ?> ... <?php else : ?> ... <?php endif; ?>


1

Don't wrap JSON-encoded values in quotes. var roster = <?php echo json_encode($roster, true); ?>;


1

Sets a value to $hascontent if either of the conditions on the right side is true. The conditions appear to be is the module empty or is customContent set, i.e. not null. If you want to find out what the value is that is set then use the following to display it. echo print_r($hascontent); or echo var_dump($hascontent);


1

As you have found, Joomla filters content to control the HTML content authors submit for security and maybe other reasons. You can change Text Filter options for each user group in the Global Configuration but I think most editors filter out PHP code anyway. There are a few ways around this problem. Disable the Editor Temporarily changing your user ...


0

die() is what is prematurely killing your script, yes, but there are other critical issues to fix -- not only so that your design works as intended, but so that copy-paste developers are using the correct techniques. First my recommended script, then some explanations and logical advice. // Start database stuff $db = JFactory::getDbo(); $query = $db->...


3

FIXED: The culprit was a personal editor choice set in the user profile section. I changed this to Editor - None, resubmitted the disobedient code (without comment tags), and it worked like a charm! Clearly the user who created the original article did not use the TinyMCE, but my account had that selected. I did not create the user account I'm using--...


0

First, about your first coding attempt: You are declaring the vital $db_name, but you never use it, and that is likely to be the earliest issue to solve. That value is best written as the 4th patameter of mysqli_connect(). $db_prefix is a deceptive variable name. It would be more accurate to call it $table_prefix because it is the leading (often randomly ...


Top 50 recent answers are included