Skip to main content
8 votes
Accepted

What is the best way for raising an error message in Joomla 4

In #1 the first line of the first method will output a message to the next page that is displayed to user after the processing has completed so this is a nice simple way to inform that user that they ...
Irata's user avatar
  • 3,972
5 votes

PHP error reporting

You'll want to create a custom PHP error handler and have that send you an email. You can use FILE and FUNCTION and LINE constants to load where the error happened into the email that you alert ...
Lance's user avatar
  • 533
4 votes

PHP error reporting

I've found out that the easiest/faster method to resolve this was to use a script reading apache's logs and send a mail every day with a summary. FYI : Server's setup has a daily log rotation, run ...
soenguy's user avatar
  • 263
4 votes
Accepted

PHP 7 - how to get usefull information from an exception message?

For Joomla on php7+ non-fatal errors no longer contain the file and line in the error. The trick is to handle the output of these errors in your template's error.php file. Add the file if it doesn't ...
jamesgarrett's user avatar
  • 3,299
3 votes

"Warning: session_start(): Failed to read session data" after upgrading from PHP 7.4 to PHP 8.0

Check and manually update any Addhandler directives in the .htaccess file if necessary. For example, you may need to update: This: AddHandler application/x-httpd-php74 .php To this: AddHandler ...
Neil Robertson's user avatar
3 votes
Accepted

403 error front end editing when HTML comments are in the content

After contacting the hosting company, they were further able to look deeper on their server logs and identified that there was a Mod Security rule that was firing which was blocking the processing of ...
Patrick Jackson's user avatar
3 votes
Accepted

504 Gateway Time-out on Update

I had a similar 504 timeout issue when trying to run updates with one particular web host and their solution was to add the following to the start of the .htaccess file: <IfModule mod_dtimeout.c>...
Neil Robertson's user avatar
3 votes
Accepted

Only show PHP error messages to Super Admin

There is a current extension in the JED that says it allows you to output to specific levels. https://extensions.joomla.org/extensions/extension/miscellaneous/development/easy-error-reporting/ Free ...
Irata's user avatar
  • 3,972
3 votes
Accepted

Failed to Read Session Data After Renaming DB

Found the answer. When I renamed the database I also had to re-assign the database user to this database.
jonboy's user avatar
  • 3,613
2 votes

500 error when trying to upgrade from 3.6.2 to 3.6.5

From phpMyAdmin, disable system plugins one by one (highest IDs first) until the problem is no more (then you will be able to find the culprit). You can also disable system plugins by just renaming ...
itoctopus's user avatar
  • 3,226
2 votes

Working menu link now leads to 404 error page

Chiming in with another possible solution. I just ran into the same issue that was confounding me. I tried turning SEF URLs off, swapped the .htaccess / .hthacces.txt files, etc. All the recs you will ...
MrPotatoHead's user avatar
2 votes

Working menu link now leads to 404 error page

I was having the same issue when I redesigned a site for a client. I built the site on my server and transferred it to theirs. I couldn't figure out why this one alias (services) wouldn't work. If I ...
Jennifer's user avatar
2 votes
Accepted

When calling sendMail, how do I get the error if the mail isn't sent?

Firstly, just on a side note, please remove the & before JFactory There was a pull request submitted on Github a year ago that allowed Joomla to catch the errors being throw by PHPMailer: https:/...
Lodder's user avatar
  • 26.9k
2 votes

How to use cookies to populate RSForm fields without notices/warnings?

You have posted snippets that are using two separate means of updating the form. The javascript-leveraging snippet is updating the form AFTER the form elements have already been generated. This ...
mickmackusa's user avatar
  • 4,826
2 votes
Accepted

"0 Class 'JFormFieldList' not found" error

This issue was resolved after hours of anxiety. The solution was to delete everything and re-install all the files. Not the best solution, because we don’t know what went wrong during the update, as ...
Xuehong Zhang's user avatar
1 vote
Accepted

What can cause Joomla to show a face and bare error message, even though debug is turned on

It means that the template you're using does not render the stack trace in its error layout. To render the stack trace, use Joomla\CMS\Document\ErrorDocument::renderBacktrace() method. The stack trace ...
Sharky's user avatar
  • 11.5k
1 vote
Accepted

"0 - syntax error, unexpected end of file" after transfering my site to another hoster

The option short_open_tag = "1" has to be set like that. For some reason the server had set it to 0 by default.
Jonathan Schmidt's user avatar
1 vote

PHP errors from ApiApplication

Whatever you're using to make the request doesn't send the Accept header. API application by default expects a request that accepts application/vnd.api+json response. Specific routes may use different ...
Sharky's user avatar
  • 11.5k
1 vote
Accepted

Error Unable to detect manifest file. for JED - related to Folder permission

So this is how i got green flags again. first I added a user lets call him kamin-user sudo adduser --home /var/www/joomla --shell /bin/bash --no-create-home --ingroup www-data --ingroup ssh kamin-...
kamino's user avatar
  • 31
1 vote

Joomla 3.9.23 Installation error after moving configuration file

Green, That's a very unorthodox method of configuring your site. Once you have a system generated configuration.php file from the install, you would be best simply moving that around and adjusting it ...
Patrick Jackson's user avatar
1 vote

How to use cookies to populate RSForm fields without notices/warnings?

For one, you are declaring: $inputCookie->set('rsformdatacountry', $_POST['form']['country']); This means that the rsformdatacountry cookie value is a string (not an array). This is appropriate ...
mickmackusa's user avatar
  • 4,826
1 vote
Accepted

Joomla Warning Showing Incorrect PHP Version

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 ...
Neil Robertson's user avatar
1 vote

After Login waring error You are not authorised to view this resource

I have Resolved this issue this is very basic solution . 1. You must have to give permissions public to all special and register menu. 2:You must have to give permissions public to all special and ...
Sanjay Yadav's user avatar
1 vote

Adding a hyperlink to the Joomla 3x custom 404 error page

If you want to use HTML (such as to display an image with a link) then you need to display it in a page that is outputting HTML. It's possible in CSS/HTML to make an image take up the whole screen -...
RichardB's user avatar
  • 3,082
1 vote

Joomla Redirect without changing url

Although not using proper terminology, I think I got what your main problem is. First of all, what you have now is not a right way to deal with non-found pages/urls (404 errors). Actually you don't ...
FFrewin's user avatar
  • 19.7k
1 vote

PHP 7 - how to get usefull information from an exception message?

The error you got after your PHP version upgrade says it loud: the [] operator not supported for strings. You are probably trying to push an array into a string or something of that sort. You ...
nyedidikeke's user avatar
1 vote

Error 500 when bad password or user logout

So this fix helped me with my bad password login problem: https://github.com/joomla/joomla-cms/pull/11093/files and the logout problem still persisted, but after upgrading to 3.6.1 everything works ...
Thomas Kolasa's user avatar
1 vote
Accepted

which exception should be thrown when sanity checks fail?

First of all, i recommend reading this two posts: Whats the correct way for exception handling? http://martinfowler.com/articles/replaceThrowWithNotification.html Basically, it might be so that in ...
JSamir's user avatar
  • 126
1 vote

Joomla 404 always redirects to homepage

I got the same issue. My problem was that "Offline mode" in Global Configuration was set to "YES". Good luck.
Alvin Konda's user avatar
1 vote

404 HTTP codes in Joomla

I have recently seen this on a few sites and just discovered that it happens when the site is in offline mode and you are logged in to the frontend. When the site is online and you make up a url you ...
Robert Went's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible