Days are displaying as "object Object" in CGCalendar

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
churchcat
Forum Members
Forum Members
Posts: 15
Joined: Mon Jan 16, 2012 4:47 pm
Location: Marietta, OH

Days are displaying as "object Object" in CGCalendar

Post by churchcat »

Not sure exactly when this began. Seems the days of the week used to display ok. System info follows:

----------------------------------------------
Cms Version: 2.2.5
Installed Modules:
AdminSearch: 1.0.4
CGCalendar: 2.5
CGExtensions: 1.57.1
CGSimpleSmarty: 2.1.7
CMSContentManager: 1.1.6
CMSMailer: 6.2.14
Captcha: 0.5.5
CmsJobManager: 0.1.2
CustomContent: 1.10
DesignManager: 1.1.4
FileManager: 1.6.5
FilePicker: 1.0.2
FrontEndUsers: 2.7.1
Gallery: 2.3.2
JQueryTools: 1.4.0.3
LightBox: 1.0.1
MenuManager: 1.50.3
MicroTiny: 2.2.2
ModuleManager: 2.1.3
Navigator: 1.0.8
News: 2.51.3
Search: 1.51.2
SelfRegistration: 1.12
Showtime2: 3.5.4
ThemeManager: 1.1.8
TinyMCE: 3.2-beta3

Config Information:
php_memory_limit:
max_upload_size: 2048000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: America/New_York
permissive_smarty: false

Php Information:
phpversion: 5.6.33
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22519
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: 512M
max_execution_time: 60
register_globals: Off (False)
output_buffering: On
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 1024M
upload_max_filesize: 2048M
session_save_path: /tmp (1777)
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: On (True)
browser_cache_expiry: 60
php_opcache: On (True)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
auto_clear_cache_age: On (True)
Server Information:
Server Software: Apache/2.4.29 (cPanel) OpenSSL/1.0.2m mod_bwlimited/1.4
Server Api: cgi-fcgi
Server Os: Linux 4.9.70-25.242.amzn1.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.58
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:
tmp: /home/fuusm/public_html/tmp (0755)
tmp_cache: /home/fuusm/public_html/tmp/cache (0755)
templates_c: /home/fuusm/public_html/tmp/templates_c (0755)
modules: /home/fuusm/public_html/modules (0755)
uploads: /home/fuusm/public_html/uploads (0755)
File Creation Mask (umask): /home/fuusm/public_html/tmp/cache (0755)
config_file: 0400
----------------------------------------------
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Location: Maidenhead, UK
Contact:

Re: Days are displaying as "object Object" in CGCalendar

Post by paulbaker »

This was changed a while ago.

Take a look at
https://www.smarty.net/docsv2/en/langua ... format.tpl

e.g. {$yesterday|date_format:"%A, %B %e, %Y"} will display as Monday, December 1, 2021

You will need to update the CGCalendar templates that are in use on your site. Post again if you need further help.
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
churchcat
Forum Members
Forum Members
Posts: 15
Joined: Mon Jan 16, 2012 4:47 pm
Location: Marietta, OH

Re: Days are displaying as "object Object" in CGCalendar

Post by churchcat »

Thank you for the quick reply. To be clear, I'm meaning the literals for the days of the week in the top row of the full calendar--that's all that's amiss in the functioning of the calendar. I'm using the most recent default templates that came with the module. Looking at the template "CGCalendarfull" which I assume controls this display, are the following lines that seem to have relevance to the day names:
dayNames: {$datestrings.dayNames},
dayNamesShort: {$datestrings.dayNamesShort},
firstDay: {$firstdayofweek},
columnFormat: {
month: 'ddd',
week: 'ddd d/w',
day: 'dddd d/M'
},
buttonText: {
today: '{$text_today|cms_escape}',
week: '{$text_week|cms_escape}',
month: '{$text_month|cms_escape}',
day: '{$text_day|cms_escape}'
},


If that's not where I should be looking, then where?
Forgive me if I'm not on the right track or misunderstand but I'm not a coder/programmer, just a user with enough knowledge to be dangerous. :)
webform
Power Poster
Power Poster
Posts: 458
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Re: Days are displaying as "object Object" in CGCalendar

Post by webform »

Are you using the default "CGCalendar FullCalendar View Sample" template in the layout list or have you created a new template from the options dropdown?

If not try to create a new "CGCalendar FullCalendar" template of type "CGCalendar::fullCalendar View".
Then you are sure your using the latest "CGCalendar FullCalendar" template.
churchcat
Forum Members
Forum Members
Posts: 15
Joined: Mon Jan 16, 2012 4:47 pm
Location: Marietta, OH

Days are displaying as "object Object" in CGCalendar[Solved]

Post by churchcat »

I thought I had the default template (had not created or edited any) but fooled around , going into file with cpanel file manager, costing and wasting and , surprise! now getting the short day literals where they should be. Thanks. All is good. :)
Post Reply

Return to “Modules/Add-Ons”