[SOLVED] Self Inflicted Problem - FEU

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
quethiock
Forum Members
Forum Members
Posts: 42
Joined: Mon Jun 16, 2008 5:18 am

[SOLVED] Self Inflicted Problem - FEU

Post by quethiock »

Hi

I am hoping somebody can point me in the right direction please as I have screwed up slightly!

Here is the background story. I have had a few users (using Module FrontEndUsers) not being able to reset their password because they never got the email from the system because it got classed as spam due, I think, to the (default) Email Title (set in /modules/frontendusers/lang/en_US.php, line 493) as "Lost Password" ... so I changed the message to "Access to Members Area" and that has worked OK until I last updated FEU, and that put the tiotle back to "Lost Password" ... but I missed out the closing ' so the line actually said:

$lang['lostpassword_emailsubject'] = 'Access to Members Area;

That threw up problems and the website stopped working .. of course ... lots of errors like this:

[11-Nov-2015 14:02:32 Europe/London] PHP Parse error: syntax error, unexpected 'error_nomailermodule' (T_STRING) in /home/imtdorgu/public_html/modules/FrontEndUsers/lang/en_US.php on line 494

Looked at line 494 of en_US.php and immediately saw the problem in Line 493 and the missing '. Corrected it, called myself some stupid names and tried the website again. Different problems now! :-( Lots of the following appearing on the screen and in the error logs:

[12-Nov-2015 21:03:40 Europe/London] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/imtdorgu/public_html/modules/FrontEndUsers/lang/en_US.php:666) in /home/imtdorgu/public_html/include.php on line 109

Also, bits of the website appeared below those error messages (the number of lines of error varied depending on what menu item I was going to). Thought to try and clear the cache but when I go to 'Site Admin', I cannot see that tabs so can only see the 'Database status' option.

Now, to me (the one who broke the site) the error appears to be in the FEU/lang/en_US.php file as that is the common feature of this problem but I can't see anything wrong

Below is the spec for what I have installed. Why am I still on CMS 1.12 and not up to CMS 2.0.1.1 or 2.0.1 or 2.0? I saw the problems reported with FormBuilder a little while ago after an upgrade to CMS 2.0 and I have some big well developed Form on the site so decided to see when the FormBuilder problems settled down before doing the upgrade and I haven't had time yet to do that yet.

I would really appreciate some pointers here please to where I need to look to get my site working correctly again without re-installing it from scratch (or I suppose uninstalling the FEU Module, installing it again, and importing the users).

I have attached a copy, renamed from php to txt, of the en_US file ... just in case.

Code: Select all

MS Install Information
CMS Version 		1.12


Installed Modules
CMSMailer 		5.2.2
CMSPrinting 		1.0.5
SEOTools2 		1.2.1
MenuManager 		1.8.6
MicroTiny 		1.2.9
ModuleManager 		1.5.8
News 		2.15.1
Search 		1.7.12
ThemeManager 		1.1.8
FormBuilder 		0.8.1.1
Captcha 		0.5.2
CGExtensions 		1.49.7
FrontEndUsers 		1.28.3
CustomContent 		1.10
FileManager 		1.4.5
NMS 		2.4.3
Gallery 		2.0.2
Uploads 		1.18.4
CGSimpleSmarty 		1.9.1

CMS Config Settings
php_memory_limit 		 
process_whole_template 		 
max_upload_size 		8000000
url_rewriting 		mod_rewrite
page_extension 		.html
query_var 		page
image_manipulation_prog 		GD
auto_alias_content 		true
locale 		 
default_encoding 		utf-8
admin_encoding 		utf-8
set_names 		true
debug 		false
timezone 		Europe/London
set_names 		true
set_names 		 
root_url 		http://www.imtd.org.uk
ssl_url 		https://www.imtd.org.uk
root_path 	Success 	/home/imtdorgu/public_html (0750)
previews_path 	Success 	/home/imtdorgu/public_html/tmp/cache (0755)
uploads_path 	Success 	/home/imtdorgu/public_html/uploads (0755)
uploads_url 		http://www.imtd.org.uk/uploads
image_uploads_path 	Success 	/home/imtdorgu/public_html/uploads/images (0755)
image_uploads_url 		http://www.imtd.org.uk/uploads/images
ssl_uploads_url 		https://www.imtd.org.uk/uploads
use_smarty_php_tags 		 


PHP Information
Current PHP Version (phpversion) 	Success 	 5.5.30
md5 function (md5_function) 	Success 	 On (True)
GD version (gd_version) 	Success 	 2
tempnam function (tempnam_function) 	Success 	 On (True)
Magic quotes in runtime (magic_quotes_runtime) 	Success 	 Off (False)
Is E_STRICT disabled in error_reporting (E_STRICT) 	Caution 	E_STRICT is enabled in the error_reporting
Is E_DEPRECATED disabled in error_reporting (E_DEPRECATED) 	Success 	
PHP Effective Memory Limit (memory_limit) 	Success 	 64M
Maximum Execution Time (max_execution_time) 	Caution 	 30 ?	
PHP output_buffering (output_buffering) 	Success 	 On
PHP Safe Mode (safe_mode) 	Success 	 Off (False)
File uploads (file_uploads) 	Success 	 On (True)
Maximum Post Size (post_max_size) 	Caution 	 8M ?	
Maximum Upload Size (upload_max_filesize) 	Caution 	 8M ?	
Session Save Path (session_save_path) 	Success 	 /tmp (1777)
Sessions are allowed to use Cookies (session_use_cookies) 	Success 	 On (True)
Basic XML (expat) support (xml_function) 	Success 	 On (True)
Checking for the XMLReader class (xmlreader_class) 	Success 	 On (True)
Checking if the httpd process can create a file inside of a directory it created (create_dir_and_file) 	Success 	
disable_functions in PHP (disable_functions) 	Caution 	 shell_exec, exec, memory_limit ?	
PHP Open Basedir (open_basedir) 	Success 	 
Test for remote URL (test_remote_url) 	Success 	
fsockopen: Connection ok! Success
fopen: Connection ok! Success
Test ini_set (check_ini_set) 	Success 	 On (True)
Test for the curl library (curl) 	Success 	 On
Test curl version (curlversion) 	Success 	 version 7.38.0, minimum recommended version is 7.19.7


Server Information
Server API (server_api) 		cgi-fcgi
Server Database (server_db_type) 		mysql (mysql)
Server Database Version (server_db_version) 	Success 	5.6.27
Check database access levels (server_db_grants) 	Success 	found a "grant all" statement that appears to be suitable
Check for filesystem time differences (server_time_diff) 	Success 	no filesystem time difference found
Server Software (server_software) 		apache
Server Operating System (server_os) 		linux 2.6.18-371.4.1.el5 on x86_64
Timezone Offset (tz_offset) 	Success 	0


Permission Information
tmp 	Success 	/home/imtdorgu/public_html/tmp (0755)
templates_c 	Success 	/home/imtdorgu/public_html/tmp/templates_c (0755)
modules 	Success 	/home/imtdorgu/public_html/modules (0755)
File Creation Mask (umask) 	Success 	/home/imtdorgu/public_html/tmp/cache (0755)
config_file 	Success 	0444 

Many thanks for reading and I hope somebody can spot where my problem is!

Regards

Mike
UK
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

Last edited by quethiock on Fri Nov 13, 2015 7:16 am, edited 1 time in total.
Mike Lyne
(Cheshire, UK)
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Self Inflicted Problem - FEU

Post by Rolf »

Clear cache?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
quethiock
Forum Members
Forum Members
Posts: 42
Joined: Mon Jun 16, 2008 5:18 am

Re: Self Inflicted Problem - FEU

Post by quethiock »

Thanks for the suggestion Rolf

I had already tried that and failed as the admin screen layout is screwed by the error messages.

I can get to the 'Site Admin' tab but then cannot select the Tab for 'Cache and content':
screenshot.jpg
Mike Lyne
(Cheshire, UK)
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1968
Joined: Mon Jan 29, 2007 4:47 pm

Re: Self Inflicted Problem - FEU

Post by Jo Morg »

Assuming that the only thing you have changed was the lang/en_US.php file, I recommend the following:
  1. Replace the modified file by a copy of the original;
  2. Create a folder hierarchy exactly like this: <your cmsms site root>/module_custom/FrontEndUsers/lang (*);
  3. Create a file entitled en_US.php inside it (*);
  4. Edit the file so it has the following content: <?php $lang['lostpassword_emailsubject'] = 'Access to Members Area'; ?> (*);
This is a well documented feature (*) of CMSMS which lets you customize language strings and backend templates without the problem of having them overwritten by an update.

(*) see: http://docs.cmsmadesimple.org/customizi ... ge-strings
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
quethiock
Forum Members
Forum Members
Posts: 42
Joined: Mon Jun 16, 2008 5:18 am

[SOLVED] Self Inflicted Problem - FEU

Post by quethiock »

To Jo Morg,

Thanks VERY MUCH for that - that makes life SO much easier. Such an easy and elegant solution. Love it!

I have done that and it's all working again

Off to apply it to the other sites I run. :)
Mike Lyne
(Cheshire, UK)
Post Reply

Return to “Modules/Add-Ons”