Page 1 of 1

[solved] CGCalendar No events in admin (FE OK) module_custom

Posted: Fri Aug 18, 2017 2:34 pm
by paulbaker
Recent upgrade from CMSMS V1 (thread for details).

Front end shows CGCalendar items OK with pre-existing templates.

Back end does not show any events, see screenshot:
CGCalendar back end - no events showing
CGCalendar back end - no events showing
CGCalendar has been upgraded today from 1.16.1 -> 2.4.9 as part of the CMSMS 1 -> 2 upgrade.

Perhaps significantly the CGCalendar upgrade went fine but I noted when I upgraded I was given a warning:
Warning
The following modules have customizations in the <root>/module_custom directory of your installation. These customizations may or may not cause errors after the upgrade. You may need to remove or revise these customizations to restore proper functionality. Proceed with caution.
CGCalendar
Now, this site DID have module_custom alterations in the past. I noticed the module_custom directory there before I did the CMSMS upgrade, saw it was empty (used to have stuff in it) and deleted it. CMSMS cache cleared too.

But somehow the CGCalendar upgrade procedure is still thinking module_custom alterations are in place despite the fact that the module_custom directory has been deleted. Is that perhaps the cause of the back end not showing events?

Thanks

----------------------------------------------
Cms Version: 2.2.2
Installed Modules:
AdminSearch: 1.0.4
CGCalendar: 2.4.9
CGExtensions: 1.56.2
CGSimpleSmarty: 2.1.6
CMSContentManager: 1.1.5
CMSMailer: 6.2.14
CmsJobManager: 0.1
DesignManager: 1.1.3
FileManager: 1.6.3
FilePicker: 1.0
Gallery: 2.3.2
JQueryTools: 1.4.0.3
MenuManager: 1.50.3
MicroTiny: 2.2
ModuleManager: 2.1.1
Navigator: 1.0.7
News: 2.51.2
Printing: 1.1.2
Search: 1.51.2
Statistics: 1.2.1.2
ThemeManager: 1.1.8
TinyMCE: 2.9.12

Config Information:
php_memory_limit:
max_upload_size: 2000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/London
permissive_smarty: false

Php Information:
phpversion: 5.6.31
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 32767
E_STRICT: 2048
E_DEPRECATED: 8192
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: /tmp (0700)
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: 0
php_opcache: On (True)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
auto_clear_cache_age: Off (False)
Server Information:
Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 3.10.0-427.36.1.lve1.4.47.el7.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 10.1.24
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:
tmp: /home/cthuk/public_html/eb/tmp (0755)
tmp_cache: /home/cthuk/public_html/eb/tmp/cache (0755)
templates_c: /home/cthuk/public_html/eb/tmp/templates_c (0755)
modules: /home/cthuk/public_html/eb/modules (0755)
uploads: /home/cthuk/public_html/eb/uploads (0755)
File Creation Mask (umask): /home/cthuk/public_html/eb/tmp/cache (0755)
config_file: 0444
----------------------------------------------

Re: CGCalendar No events in admin (FE OK): module_custom?

Posted: Fri Aug 18, 2017 3:14 pm
by calguy1000
CGCalendar has changed dramatically from the 1.x series to what it is now. So if you have a module_custom override you certainly must move it out of the way until you re-do it.

check /assets/module_custom/CGCalendar (and rename that whole directory for a while).
check your javascript error console, and of course make sure that you have access to the php error logs.

Re: CGCalendar No events in admin (FE OK): module_custom?

Posted: Fri Aug 18, 2017 3:22 pm
by paulbaker
Ah, perfect.

I had checked and deleted /module_custom before the upgrade.

I was forgetting to check the new place /assets/module_custom, where there was a CGCalendar directory. Something must have copied the directory there. As soon as I removed it, the back end started showing events again.

Thanks Calguy!