Please i need help

aterad wrote on Monday, December 08, 2014:

Hello,
I successfully installed openemr 4.1.2(7) on a Linux internet web server but am having a challenge with one of the modules. I want to add Card Type Box in the
Demography Patient registration page but i encountered an error.

This is what i did.
I clicked on List in the Administration Module, hence i added Card type in the list succesfully.
I then open Layout in the same Administration Module, then clicked on Demography to add the Card type but its given me the following error whenever i want to save it;

"Not Implemented

GET to /interface/super/edit_layout.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request"

Then i went through the route in the error given which is, /interface/super/edit_layout.php in my server cpanel, but the 6 files and a folder called rules are all there including the
edit_layout.php file is there.
Note: this is working fine on the openemr 4.1.2(7) installed on xampp localhost on my system without any error.

Please what can i do to solve the problem, thanks for your anticipated help.

fsgl wrote on Monday, December 08, 2014:

A user cannot just add a new data type to the Demographics layout without modifying the codes.

Provide a screenshot of what you wish to achieve & we will try to formulate a workaround without code modification.

It is unclear what you did on localhost.

aterad wrote on Tuesday, December 09, 2014:

Hello fsgl, like i explained above, i have done this successfully before using xampp server but it gave error on the internet web server. in a nutshell, what i want to add is card type list box in the patient demography page where a patient can have a family,single or company card. please see the attached images. Thanks for your anticipated help

visolveemr wrote on Tuesday, December 09, 2014:

Hello Timothy

Try checking the error log message. This might help in finding out, what specifically causes this issue.

Thanks
OpenEMR Customization/Support Team,
ViSolve Inc
services@visolve.com
Demo’s @ ViSolve Demo Library

fsgl wrote on Tuesday, December 09, 2014:

Modifications on localhosts don’t always translate into hosted environments. I am given to understand that the use of the command line is often unavail -able in the latter. Bear in mind that having OpenEMR hosted limits your options.

It appears that your access to the edit_layout.php folder has been blocked.

Are you able to recreate the card type field & new list in the corresponding tables via phpMyAdmin? Are you able to get into the database via another route if phpMyAdmin is unavailable? If not, try speaking to hosting support.

blankev wrote on Tuesday, December 09, 2014:

Why not used the “User Defined” field for such simple thin like Card type: Single family Company. Don’t you want to have this information in the Insurance part of Demographics?

aterad wrote on Wednesday, December 10, 2014:

Hello Visolve,
Yes as you said i have copied part of the error messages in the error log file. below it is

[04-Dec-2014 20:20:12 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /home3/ateradte/heiss/interface/super/edit_globals.php on line 189
[04-Dec-2014 20:20:12 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /home3/ateradte/heiss/interface/super/edit_globals.php on line 189
[04-Dec-2014 20:20:12 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /home3/ateradte/heiss/interface/super/edit_globals.php on line 189
[04-Dec-2014 20:20:12 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /home3/ateradte/heiss/interface/super/edit_globals.php on line 189
[04-Dec-2014 20:20:12 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /home3/ateradte/heiss/interface/super/edit_globals.php on line 189
[04-Dec-2014 20:20:12 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /home3/ateradte/heiss/interface/super/edit_globals.php on line 189
[04-Dec-2014 20:20:12 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /home3/ateradte/heiss/interface/super/edit_globals.php on line 189
[04-Dec-2014 20:20:12 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /home3/ateradte/heiss/interface/super/edit_globals.php on line 189
[04-Dec-2014 20:20:12 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /home3/ateradte/heiss/interface/super/edit_globals.php on line 189
[04-Dec-2014 20:20:12 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /home3/ateradte/heiss/interface/super/edit_globals.php on line 189
[04-Dec-2014 20:20:12 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /home3/ateradte/heiss/interface/super/edit_globals.php on line 189
[04-Dec-2014 20:20:12 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /home3/ateradte/heiss/interface/super/edit_globals.php on line 189
[04-Dec-2014 20:20:12 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /home3/ateradte/heiss/interface/super/edit_globals.php on line 189
[04-Dec-2014 20:20:12 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /home3/ateradte/heiss/interface/super/edit_globals.php on line 189

please what do i do.
thanks.

aterad wrote on Wednesday, December 10, 2014:

Hello Visolve,
as you said, this is the latest error in the error file.
[04-Dec-2014 20:20:12 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /home3/ateradte/heiss/interface/super/edit_globals.php on line 189
[04-Dec-2014 20:20:12 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /home3/ateradte/heiss/interface/super/edit_globals.php on line 189
[04-Dec-2014 20:20:12 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /home3/ateradte/heiss/interface/super/edit_globals.php on line 189
Please what do i do.
Thanks

aterad wrote on Wednesday, December 10, 2014:

Hello fsgl, if indeed my access to the edit_layout.php file has been blocked, then how so i unblock. thanks

aterad wrote on Wednesday, December 10, 2014:

Hello pieter,
yes you are right, but the pathetic part is that i cant even safe anything there. take for example, in the demography page of the layout, i edited the sex input box, but it did not save.so its affecting everything. so please what could be the solution. Thanks

fsgl wrote on Wednesday, December 10, 2014:

Do you have access to phpMyAdmin or to the database to add Card Type & the list in the hosted environment?

If no, was hosting support any help?

If no again, the only thing that I can think of is to reinstall OpenEMR in the hosted environment with the modified database from localhost with all the desired changes.

This is a bit of a pain in the neck, but I know it’s possible because you provided the database & did not create a new one the first time you installed the hosted copy. At least that’s what I think you did.

An alternative is to have the second copy of OpenEMR on your second server instead of someone else’s. Refer to your thread about Demo setup. With the second server, you should be able to do as you please.

This time of the year it’s fairly cheap to purchase a second computer. Look around in EBay for a refurbished model under $100. Not paying hosting charges for a year will be the same price for a refurbished computer.

aterad wrote on Thursday, December 11, 2014:

Hello fsgl, you suggested the installation of a new copy of openemr in the hosted environment. Sir, are you saying that a fresh copy will not give such error again knowing fully well that when i uploaded this current one there was no singular error of failed upload by filezilla. Thanks

fsgl wrote on Thursday, December 11, 2014:

What did hosting support say about

GET to /interface/super/edit_layout.php not supported

?
If they can unblock it, it would be easier than a reinstall.

aterad wrote on Friday, December 12, 2014:

Hello everyone,
thanks to everyone that contributed to this thread, every contribution is highly appreciated. @fsgl,your suggestion of informing the host finally nailed it on the head. everything is now okay. thanks again to everyone.

fsgl wrote on Saturday, December 13, 2014:

Excellent.

Thanks for the followup. Makes future troubleshooting more streamlined.