6 votes
Accepted

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

I have test another solution thanks to the user @farahmand and it's worked very well and I decided to provide a step by step guide for the solution Solution One: First find the exact absolute path ...
user avatar
  • 387
6 votes

How to enable error_reporting only for administrator?

Try this small Plugin from Viktor Vogel. This plugin gives the possibility to control the reporting per user group. Big advantage of this is, that you don't need to hack core files. http://joomla-...
user avatar
5 votes
Accepted

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

Just some additional information on this error, copied right out of the default htaccess.txt file that comes with Joomla: # The line just below this section: 'Options +FollowSymLinks' may cause ...
user avatar
  • 13.3k
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 ...
user avatar
  • 531
5 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 ...
user avatar
  • 2,275
4 votes

Logging to a file only with JLog

This is the way I use to add a log entry to a file. JLog::add has changed too much between Joomla versions. $config = array( 'text_file' => 'logging.log' ); // Joomla 3 jimport('joomla.log....
user avatar
  • 7,415
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 ...
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 ...
user avatar
  • 3,134
3 votes

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

You should use a session to save the form data. In the CMS there is a special User State for this. Just before you return false you should save the current data into the user state: // Save the form ...
user avatar
  • 4,055
3 votes

How to enable error_reporting only for administrator?

You can add an .htaccess file into administrator directory with: php_flag display_errors on php_value error_reporting <integer> Ref: https://stackoverflow.com/questions/6127980/enabling-error-...
user avatar
  • 7,415
3 votes
Accepted

How to enable error_reporting only for administrator?

My most convenient trick I use in this case, is by creating a temporary hack on the framework.php file, inside the /administrator/includes/ directory. The error reporting for the admin is handled ...
user avatar
  • 19.5k
3 votes

Replace deprecated getError and getErrors

You should use PHP Exceptions instead. I do find it odd that Joomla throws deprecated messages when using JError yet isn't still used in the 3.3.6 core. Anyway, the below would be an example of ...
user avatar
  • 26.5k
3 votes

Working menu link now leads to 404 error page

If your URLs are working fine when you don't use SEF URLs and the 404 error page appears only when SEF URLs are turned ON, then it is most likely that the .htaccess file on your Joomla website is not ...
user avatar
3 votes
Accepted

Working menu link now leads to 404 error page

Do you have caching enabled? Disable while developing. Have you changed the URL Rewrite option? Have you renamed the .htaccess.txt file? Try rebuilding menus option from menu manager. Also make sure ...
user avatar
  • 677
3 votes
Accepted

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

I've got it!!! You have to include: JHtml::_('behavior.framework'); and the javascript is something like this: jQuery("#user_name").attr('title','Kérem előbb válassza ki a hatályba lépés dátumát!');...
user avatar
3 votes

Error Offlajn extensions

If you have any problem with the purchased extensions from Offlajn, you can create a support ticket on our site: http://offlajn.com/contact-us.html Our kind support team is always ready to help you. ...
user avatar
  • 31
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 ...
user avatar
  • 2,275
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.
user avatar
  • 3,501
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>...
user avatar
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 ...
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 ...
user avatar
2 votes

return 404 header with 404 page

Here is what I ended up placing at the top of my error.php <?php /** * @package Joomla.Site * @subpackage Template.system * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, ...
user avatar
  • 953
2 votes
Accepted

return 404 header with 404 page

This is called a soft 404 as you are redirecting to a different URL. So the 200 response after the redirect is correct, which, yes, does cause problems for search engine bots in determining if content ...
user avatar
  • 1,749
2 votes

Error Offlajn extensions

offlajn_forms is not a core Joomla table. It belongs to an offlajn extension, so there is something on your site trying to pull data from this table. You say that it is no longer installed, however ...
user avatar
  • 26.5k
2 votes

404 HTTP codes in Joomla

You can customize the 404 error (example show a custom page or send somewhere other than the homepage) by adding a PHP file to your template, name it error.php and place it in the root of the template ...
user avatar
  • 855
2 votes
Accepted

404 HTTP codes in Joomla

This isn't an error but expected behavior. If you navigate to Components > Redirect in the Joomla Administrator's interface, you will see a list of all URLs requests resulting in a 404. Joomla ...
user avatar
  • 1,396
2 votes

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

Another solution suggested at the Joomla forum is to enable the FTP layer. The FTP layer can be enabled from System -> Global Configuration -> Server tab -> FTP Settings. Add FTP details (host, ...
user avatar
  • 13.3k
2 votes

Joomla 404 always redirects to homepage

index.php will always be present in the URL as long as you haven't enabled the option "Use URL Rewriting". If you enable that one in the global config, it will be removed. Even 404 errors are going ...
user avatar
  • 5,527
2 votes
Accepted

JLoader for JLog

You will need only this: JLoader::register('JLog', JPATH_LIBRARIES . '/joomla/log/log.php'); This is the main class for logging.
user avatar
  • 4,055
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 ...
user avatar
  • 3,186

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