ForumPostAssistant / FPA

The Forum Post Assistant (FPA) script has been developed to assist Joomla!® forum posters to be able to post relevant system, instance, PHP and troubleshooting information directly in to a pre-formatted forum post. This will save a few hours of posting back and forth, asking for, and explaining how to acquire useful information in order for other forum users to help troubleshoot a problem.
https://forumpostassistant.github.io/docs/
GNU General Public License v2.0
25 stars 15 forks source link

Look for config setup info that may be commented out #19

Closed PhilD13 closed 6 years ago

PhilD13 commented 11 years ago

When pulling values out of the configuration.php file, it ignores if a value is inside a comment. I have one file that I can update for use locally or on the production server, so I have commented out a line that reads: Code: // public $host = 'localhost';

This line was immediately before the line used by the system.

For this reason, I wasn't getting any of the database info, since my hosting provider uses a db running at a different url. Once I changed the order of these lines, then fpa picked up the correct value.

It should be easy to have preg_match detect a line starting with '//', but it might require removal of all /* ... */ comments before extracting information.

Hope this might help others who want to see info that is not coming thru.

WebMuse

frostmakk commented 6 years ago

// commented lines taken care of in 1.4.0 release.

frostmakk commented 6 years ago

Issue fixed in v1.4.5 by including the file.