Questions tagged [error-handling]

The tag has no usage guidance.

1
vote
1answer
25 views

Joomla Warning Showing Incorrect PHP Version

Using Joomla 3.9.8 I recently migrated from localhost (PHP 7.1.9) to a live server (PHP 7.2) On localhost my site was installed at localhost/mysote. On my live server it's installed at dev.example....
0
votes
2answers
27 views

Only show PHP error messages to Super Admin

Is there a way to show PHP error messages only to a Super Admin? How are PHP error messages called or generated? I know in System Configuration we can set the level e.g. developer or none, would ...
1
vote
1answer
40 views

Add error reason when overriding save function

I have a custom save function in a class that is extending JModelAdmin. The save function calls several external functions in other helper files. At several points those helper files can indicate ...
0
votes
1answer
579 views

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

I am getting warning error when user logged in. After logged in on top of header show warning message "You are not authorised to view this resource." And when try to download attachment it's showing ...
1
vote
3answers
1k views

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

I'm sending email using the following code: $mail =& JFactory::getMailer(); $email_sent = $mail->sendMail( $from_email, $from_name, $to_email, $subject, ...
0
votes
2answers
164 views

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

I have the following code for my 404 it is located in error.php within the template if ($this->error->getCode() == '404') { header('Location: /images/masters/404.gif'); exit; } I ...
2
votes
1answer
533 views

Joomla Redirect without changing url

I am looking for a way to redirect joomla to a different page without changing the url in the address bar. We currently have a site setup that when it encounters a 404 page (eg. site.com/fake-url) it ...
4
votes
3answers
1k views

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

After upgrading from PHP5 to PHP7 I get an error page saying: 0 - [] operator not supported for strings I've read that now PHP7 is smarter with exception. But the message I get is totally useless. I ...
2
votes
1answer
315 views

500 error when trying to upgrade from 3.6.2 to 3.6.5

I am tyring to upgrade my joomla to the latest version(3.6.2 to 3.6.5), but no matter I install it online or download the package and install from local, I got a 500 error. Also when I try to open ...
8
votes
2answers
157 views

PHP error reporting

I'm trying to create a behaviour such as : if there's a php fatal error, I want the joomla error page to show up, but I also want to receive a mail telling me what the error was. The idea here is to ...
1
vote
3answers
176 views

Error 500 when bad password or user logout

Since update to version 3.6 when user tries to login with bad password he is not redirected to proper page (did you forget password? for example). Instead he gets an Error 500 message. Also when user ...
1
vote
1answer
75 views

which exception should be thrown when sanity checks fail?

Which SPL exception should be thrown when sanity checks fail? For example, if the check() function fails when saving data with JTable or a parameter check fails? I'd prefer to use something more ...
1
vote
1answer
311 views

Redirect Loop for category article that is linked on a menu item

I am refactoring a website which has the main menu items that link directly to a specific article of corresponding categories. Now for each of these menu items, there are children blog category menu ...
1
vote
1answer
44 views

JLoader for JLog

I'm currently using the following to load JLog: jimport('joomla.log.log'); I'd like to make use of JLoader, however I'm unsure as to which file I need to register. Would I use: JLoader::register('...
1
vote
3answers
6k views

Joomla 404 always redirects to homepage

I'm having issues getting the proper 404 page (templates/MY_TEMPLATE/error.php) to work. I've spent hours reading through and trying every example or fix listed on Stack Exchange and other sites with ...
1
vote
2answers
355 views

Error Offlajn extensions

The contact page of my site ( [url]https://www.portal-gestao.com/contactos.html[/url]) is returning the error: Table 'portalge_2015.j30_offlajn_forms' doesn't exist SQL=SELECT fields FROM ...
1
vote
2answers
3k views

Overriding save() method on form, how do I redirect to or show the form again after raiseError or enqueueMessage?

I am developing a component that uses a standard list/edit form to create records in the database (all of which goes smoothly) based on the Hello World! tutorial here. In addition to saving info to ...
0
votes
1answer
2k views

Backup failed using Akeeba

I failed my latest attempts to backup my Joomla2.5 website after the following error message from Akeeba: Backup Failed The backup operation has been halted because an error was detected. ...
5
votes
2answers
3k views

Logging to a file only with JLog

I believe the JLog documentation is incorrect with this: Often you may wish to display an error log message and log to an error file. Joomla allows this natively through the JLog::add function. For ...
1
vote
1answer
382 views

FJ Related Articles Plus module - Fatal error when tags added to an article

I use the FJ Related Articles Plus module to display at the bottom some pages. When I tagged the pages (not all but most of my tags), then the pages are not longer accessible and I have to either ...
2
votes
1answer
558 views

Any way of overriding “Error displaying the error page: Application Instantiation Error” message?

When there's an error with the Database, Joomla throws that error. It takes place so early in the execution cycle that nothing from the Joomla application is ready, so you get an ugly blank page with ...
6
votes
4answers
14k views

500 Internal Server Error after renaming htaccess.txt to .htaccess

I'm getting 500 errors showing on my site after renaming htaccess.txt to .htaccess
5
votes
3answers
941 views

How to enable error_reporting only for administrator?

There are many times that I need to debug issues on the administration area of Joomla and need to do so on the live site. But I don't want to enable error_reporting also for the front-end. Is there ...
8
votes
1answer
757 views

Replace deprecated getError and getErrors

I have been looking through some logs and noticed that getError() and getErrors() are throwing deprecated messages in Joomla 3.3 (we just updated). Apparently these were deprecated back in Joomla 2.5, ...
7
votes
3answers
4k views

404 HTTP codes in Joomla

how do you make Joomla return a "real" 404 code? I can't figure out how to make this happen! I have changed htaccess.txt to .htaccess, enabled the system / redirect plugin, and turned on rewrite URLs ...
6
votes
2answers
6k views

How to deal with “JFolder::create: Path not in open_basedir paths Unable to create destination” while installing Joomla extensions?

I am trying to install a new extension in Joomla,But I am getting this error Message: "JFolder::create: Path not in open_basedir paths Unable to create destination" What is the solution?
4
votes
3answers
3k views

return 404 header with 404 page

In this documentation http://docs.joomla.org/Creating_a_Custom_404_Error_Page there is advice to redirect to a custom 404 page by redirecting. This leads to the final page being served on a Header ...
2
votes
1answer
1k views

Tag view Notice: Array to string conversion in

OK i have a major problem under Joomla 3. When i generate a search URL for tagged items i get the following message and i am missing a lot of items: Notice: Array to string conversion in /www/htdocs/...
3
votes
1answer
316 views

How to add the joomla style tootltip error message to a form

I know, that joomla 3.x uses bootstrap, both css and js. When I am filling in the registration form and my password is too short for example, I start getting those javascript tooltip error messages. ...
1
vote
2answers
2k views

Can't create new Article & Modules - page just reloads

I've inherited a site, however whenever I try to create a new Article or Module by pressing new. The page just reloads. Joomla 3: .1.1 | PHP Version :5.4.26 - front end works fine, not seeing any ...
3
votes
7answers
10k views

Working menu link now leads to 404 error page

I am working on a new website development with Joomla 3.1. The menu links were working fine before. However, suddenly one of the menu link now leads to the 404 error page. It happened once before and ...
10
votes
3answers
1k views

Prevent error message from showing SQL

In my table I have created an index on 'col1' to prevent duplicate entries which works well but the resulting error message displayed to a user when they attempt to add a duplicate entry seems to to ...
1
vote
1answer
81 views

Emails by joomlahost warn me I should update Joomla version on unknown domain [closed]

I have a small personal website, say namesurname.joomlafree.it made with Joomla 2.5 (remote installation, that I keep updated regularly, actually to 2.5.19). It is the third time already in the ...
5
votes
2answers
4k views

How to do SQL exception / error handling compatible with 2.5 and 3.x?

I was trying to develop Joomla 2.5 and 3 component. As many things deprecated between these two versions and the way to throw and catch database and other errors, I could not find ways yet to make ...
11
votes
2answers
8k views

Catching exception/error in database transaction

I am using the following way in joomla 2.5 and 3 to execute database query - $database = JFactory::getDBO(); $database->setQuery $database->execute(); but how do I catch errors/exceptions if ...
20
votes
3answers
7k views

Whats the correct way for exception handling?

In Joomla core I find still many calls like this: // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); ...