Modules are not behaving consistently

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
abhishek
New Member
New Member
Posts: 3
Joined: Sun Oct 02, 2016 4:21 am

Modules are not behaving consistently

Post by abhishek »

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.
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Modules are not behaving consistently

Post by Jos »

It seems strange to me that this behaviour is coming from your module. Does it involve ajax posting or something?

Did you try your module on a plain CMSMS installation?

Do you have a public link to the form?
User avatar
PinkElephant
Forum Members
Forum Members
Posts: 169
Joined: Fri Feb 06, 2009 2:08 pm

Re: Modules are not behaving consistently

Post by PinkElephant »

Not sure if it's relevant here but Smarty Caching can lead to seemingly whacky behaviour. It's disabled for Admin, otherwise as-configured.
abhishek
New Member
New Member
Posts: 3
Joined: Sun Oct 02, 2016 4:21 am

Re: Modules are not behaving consistently

Post by abhishek »

Jos wrote:It seems strange to me that this behaviour is coming from your module. Does it involve ajax posting or something?

Did you try your module on a plain CMSMS installation?

Do you have a public link to the form?

You can check out the form here..
http://developer-aroha.16mb.com/

No, I did not use any ajax in the form. It's a simple form.
abhishek
New Member
New Member
Posts: 3
Joined: Sun Oct 02, 2016 4:21 am

Re: Modules are not behaving consistently

Post by abhishek »

PinkElephant wrote:Not sure if it's relevant here but Smarty Caching can lead to seemingly whacky behaviour. It's disabled for Admin, otherwise as-configured.

Are you suggesting that I should disable the caching for the modules, because as per the docs, caching is disabled for {content},{content_image} and {content_module} blocks. Please correct me if I'm wrong.
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Modules are not behaving consistently

Post by Jos »

abhishek wrote:You can check out the form here..
http://developer-aroha.16mb.com/
I don't see any form there, nor do I see a place where to expect it.
Maybe you can put a <div class="theformshouldbehere"> around it in the pagetemplate?
Post Reply

Return to “Modules/Add-Ons”