Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

datepicker not working

10 years 9 months ago
  • Alex's Avatar
    Topic Author
  • Alex
  • Offline
  • Fresh Boarder
  • Posts: 30
  • Thank you received: 2
Licenses:
JomSocial Active

Since the last upgrade, the datepicker does not appear when creating or editing an event. Firefox Web Developer Tools reports these errors:

ReferenceError: January is not defined create-events:2002
ReferenceError: January is not defined create-events:2069
ReferenceError: January is not defined create-events:2174

10 years 9 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Alex,
It seems the upgrade process not taken place correctly.
Do you allow me to upgrade with latest?
Before that I would suggest you to have backup whole site.
Thanks

10 years 9 months ago
  • Alex's Avatar
    Topic Author
  • Alex
  • Offline
  • Fresh Boarder
  • Posts: 30
  • Thank you received: 2
Licenses:
JomSocial Active

I have taken a full backup. You can try the upgrade again.

10 years 9 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Alex,
I am experiencing login failed at site admin panel.
Can you check please?
Thanks

10 years 9 months ago
  • Alex's Avatar
    Topic Author
  • Alex
  • Offline
  • Fresh Boarder
  • Posts: 30
  • Thank you received: 2
Licenses:
JomSocial Active

We changed the admin password this morning. How can I send you the new password?

10 years 9 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Alex,
Sorry for the delay.
You can provide us by editing your first post of this topic.
Thanks

10 years 9 months ago
  • Alex's Avatar
    Topic Author
  • Alex
  • Offline
  • Fresh Boarder
  • Posts: 30
  • Thank you received: 2
Licenses:
JomSocial Active

The Admin password has been updated in the first message.

10 years 9 months ago
Licenses:

Hi, Alex.

This issue may be caused by 3rd party scripts.
Please, change template to Joomla! default one and disable that tab module at right (with Twitter icons).
Then check if issue persist.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 9 months ago
  • Alex's Avatar
    Topic Author
  • Alex
  • Offline
  • Fresh Boarder
  • Posts: 30
  • Thank you received: 2
Licenses:
JomSocial Active

As you instructed, I disabled the (anything tabs) tabs on the right side and changed all community-related pages to rhuk-milkyway, then to Beez5 templates, cleared the server and browser caches each time, and the problem persisted.

I have reinstated the tabs and template to the previous settings so not to introduce too many changes at once.

10 years 9 months ago
Licenses:

Hi, Alex.

Ok, then I assign developer to this thread to take a look too...


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 9 months ago
Licenses:

Hi Alex,

seem you server doesn't support anonymous function
/components/com_community/libraries/fields/date.php line 181:

$monthNames = array_map(function ($item) {
            return "'" . $item . "'";
        }, $months);
        $monthNamesShort = array_map(function ($item) {
            return "'" . substr($item, 0, 3, 'UTF-8') . "'";
        }, $months);
        $dayNames = array_map(function ($item) {
            return "'" . $item . "'";
        }, $days);
        $dayNamesShort = array_map(function ($item) {
            return "'" . substr($item, 0, 3, 'UTF-8') . "'";
        }, $days);
        $dayNamesMin = array_map(function ($item) {
            return "'" . substr($item, 0, 2, 'UTF-8') . "'";
        }, $days);

that code using anonymous function to build the javascript array for month and day names (line 202).
$html .= "monthNames: [ " . implode(", ", $monthNames) . " ],\n";
$html .= "monthNamesShort: [ " . implode(", ", $monthNamesShort) . " ],\n";
$html .= "dayNames: [ " . implode(", ", $dayNames) . " ],\n";
$html .= "dayNamesShort: [ " . implode(", ", $dayNamesShort) . " ],\n";
$html .= "dayNamesMin: [ " . implode(", ", $dayNamesMin) . " ],\n";

for fix your issue I replace that above code with static value:
$html .= "monthNames: [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ], monthNamesShort: [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ], dayNames: [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ], dayNamesShort: [ 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' ], dayNamesMin: [ 'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa' ],";

that for birthday field. for event , at /components/com_community/templates/default/events.forms.php
replace
monthNames: [ <?php echo implode(", ", $monthNames) ?> ],
monthNamesShort: [ <?php echo implode(", ", $monthNamesShort) ?> ],
dayNames: [ <?php echo implode(", ", $dayNames) ?> ],
dayNamesShort: [ <?php echo implode(", ", $dayNamesShort) ?> ],
dayNamesMin: [ <?php echo implode(", ", $dayNamesMin) ?> ],
with
monthNames: [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ], 
monthNamesShort: [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ],
dayNames: [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ],
dayNamesShort: [ 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' ],
dayNamesMin: [ 'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa' ],
please ask your server support, maybe they disable it for security reason.

Regards,
Albert

10 years 9 months ago
  • Alex's Avatar
    Topic Author
  • Alex
  • Offline
  • Fresh Boarder
  • Posts: 30
  • Thank you received: 2
Licenses:
JomSocial Active

Hi Albertus,

Thank you for your quick response and suggested fix. However, when you told me my "server doesn't support anonymous function" I reviewed my server configuration carefully. NOTE: This will be useful for troubleshooting some of your user's environments.

On my server, I was using eAccelerator PHP opcode cache - which does not support anonymous functions. I did some research and It appears to have lost community support in 2012. I have disabled it and everything is working normally. I will be changing from eAccelerator to APC as it will be included in PHP 6. I think this is a better alternative than changing core code just for my site, which can cause issues during subsequent upgrades.

As you are using anonymous functions in your code, you may consider noting in your system requirements that you do not support servers using eAccelerator.

Thanks for your help!

The following user(s) said Thank You: Albertus
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW