Page 1 of 1

Problem about Modules does not work as expected.

Posted: Wed Feb 22, 2017 7:38 am
by thuyengo
Hello respected members. I am running the following installation of cmsms

---------------------------------------------

Cms Version: 2.1.5

Installed Modules:

AdminSearch: 1.0.2
CMSContentManager: 1.1.1
Contact: 0.1
DesignManager: 1.1.1
FileManager: 1.5.2
MicroTiny: 2.0.3
ModuleManager: 2.0.4
Navigator: 1.0.3
News: 2.50.5
Search: 1.50.2

Config Information:

php_memory_limit:
max_upload_size: 2000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Asia/Dili
permissive_smarty: false


Php Information:

phpversion: 5.6.20
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22527
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 30
register_globals: Off (False)
output_buffering: 4096
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: C:\xampp\tmp (0777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On


Performance Information:

allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: On (True)

Server Information:

Server Software: Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.20
Server Api: apache2handler
Server Os: WINNT 6.2 On i586
Server Db Type: MySQL (mysqli)
Server Db Version: 10.1.13
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:

tmp: E:\work\cmsms\tmp (0777)
tmp_cache: E:\work\cmsms\tmp\cache (0777)
templates_c: E:\work\cmsms\tmp\templates_c (0777)
modules: E:\work\cmsms\modules (0777)
uploads: E:\work\cmsms\uploads (0777)
File Creation Mask (umask): E:\work\cmsms\tmp\cache (0777)
config_file: 0666

----------------------------------------------

I used the module writing tutorial provided in the docs to create a simple module, which displays a contact form on the frontend and then once the user enters the relevant details the module fills up the database and makes this info available to the admin in the admin panel. However this is the intended action of the module but, the module is behaving strangely.

The issue is, the module displays the front-end form sometimes, and it doesn't the other. The appearance and disappearance is very random. Sometimes if I leave the browser window idle for sometime the front-end form disappears. However, the module continues to work perfectly on the admin side.

I have even re-wrote the module again, still this behavior continues and confuses me. Any help will be greatly appreciated.

Please ask for any other info that is needed.
Thank You very much!

Re: Problem about Modules does not work as expected.

Posted: Wed Feb 22, 2017 3:33 pm
by calguy1000
Sometimes if I leave the browser window idle for sometime the front-end form disappears.
This tells me that the issue is almost certainly not with the module
s PHP code. But could be related to the generated HTML, or javascript errors, or plugins in your browser.

You will need to use a process of elimination to isolate exactly what the problem is. i.e: if you use a different browser, with no plugins... does the problem reproduce? have you checked the javascript console for errors? Does the HTML validate?