Skip Navigation

[Resolved] After updating to new toolset types we receive script error on admin

This support ticket is created 6 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 14 replies, has 3 voices.

Last updated by lilyB 6 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#1158686

Tell us what you are trying to do?
We have a multilangual site (en, hu, de) using wpml and toolset. EN and HU is active now. After refreshing toolset types, we recognized that the text editors and also toolset relations were not loaded in HU version (EN was OK). There have been some javascript errors, and also we got errors in debug log.

After trying to solve the problem on public site we cloned the website to a test server to check. We upadted the plugins one--b yone and last plugin was types. The error came with the upadate of Types.

Test site is hidden link (this is now a clone of the public website: hidden link)

Console mysql error we recive by laoding a hotel page admin only in HU version :
ReferenceError: wptCallbacks is not defined validation.js:392:5
hidden link
i
hidden link
fireWith
hidden link
ready
hidden link
K
hidden link

Yesterday on the public website the debug log was this:
[03-Dec-2018 15:36:54 UTC] PHP Fatal error: Uncaught Toolset_Element_Exception_Element_Doesnt_Exist: Unable to load posts 0 (0). in /wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/element/post.php:68
Stack trace:
#0/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/element/element_factory.php(102): Toolset_Post->__construct('0', NULL, NULL, NULL, Object(Toolset_Element_Factory))
#1 /wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/element/post_translation_set.php(82): Toolset_Element_Factory->get_post_untranslated('0')
#2 /wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/element/element_factory.php(122): Toolset_Post_Translation_Set->__construct(Array, Object(Toolset_WPML_Compatibility), Object(Toolset_Element_Factory))
#3 /wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/element/element_factory.php(77): in /wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/element/post.php on line 68

Other error messages after changing settings and trying to solve the problem:
Toolset_Element_Exception_Element_Doesnt_Exist thrown
Unable to load posts 0 (0).

#1158794

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

Could you provide the credentials for your test site so that I can have a look ?

Thanks,
Shane

#1159012

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

I was able to get onto the site but wasn't able to log in.

Could you check the credentials on your end and let me know if they work for you ?

Thanks,
Shane

#1159036

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

I was able to log in successfully now,

However as you mentioned only the hungarian translation is having this issue.

Could you upload the previous version of Types so that I can see what it looked like before the update?
https://toolset.com/download/toolset-types/#changelog

Thanks,
Shane

#1159060

OK, I uploaded previous version, and now you can see there is no script error on HU hotel page.

#1160004

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Did the password change?
I tried to log in with the credentials that were provided and I wasn't able to get on.

Could you let me know what is happening sos that I can take a look ASAP.

Thanks,
Shane

#1160101

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thats strange, I'm able to log in now.

I'm not able to replicate this locally, so I would need to grab a copy of your site so that I can submit it to our 2nd tier supporters for further debugging.

Please let me know if this is ok with you.
Thanks,
Shane

#1160116

Yes, that's OK, thanks.
Should you need to use the ftp, please provide us with an IP, we will alllow access.

#1160674

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Sorry for the delayed response. I was trying to install the duplicator plugin on the site so that I can get a copy but it seems FTP access is required for me to install the plugin.

Could you install the plugin and create the package so that I can go ahead and download it ?

To do this you can follow the instructions in the link below.
https://toolset.com/faq/provide-supporters-copy-site/

Thanks,
Shane

#1160885

Sorry for my late answering. The deuplicator is up and working.
I created the packges: hidden link

#1163086

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

There has been a new release of WPML.

Could you update and let me know if the issue still remains ?

I'm currently downloading the duplicator package to have a look.

Thanks,
Shane

#1163093

Hi Shane,
Updated everything, but the problmem still exists.
Thanks,
Sandor

#1163146

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Sorry if this is taking long as the queue is extremely busy at the moment and i'm also trying to replicate this on a fresh installation as well.

Thanks you for your patience and understanding.

#1164842

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

So I was able to get the Duplicator package setup and to my surprise the issue isn't there.

I suspect that it might be because of the difference in php versions.

What I recommend that you do is to update your php version from 5.6 to 7.0 and see if the same results appear.

Thanks,
Shane

#1166292
secondary-language.png

Hi,

I'm having this exact same issue. I'm getting the following javascript error on translated posts:

Uncaught ReferenceError: wptCallbacks is not defined
    at HTMLDocument.<anonymous> (validation.js?ver=0.1.2:392)
    at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-draggable,jquery-u&load[]=i-tabs,suggest,jquery-ui-position,jquery-ui-menu,wp-a11y,jquery-ui-autocomplete,underscore,shortcode,backbone,wp-util,moxiejs,pl&load[]=upload&ver=4.9.8:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-draggable,jquery-u&load[]=i-tabs,suggest,jquery-ui-position,jquery-ui-menu,wp-a11y,jquery-ui-autocomplete,underscore,shortcode,backbone,wp-util,moxiejs,pl&load[]=upload&ver=4.9.8:2)
    at Function.ready (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-draggable,jquery-u&load[]=i-tabs,suggest,jquery-ui-position,jquery-ui-menu,wp-a11y,jquery-ui-autocomplete,underscore,shortcode,backbone,wp-util,moxiejs,pl&load[]=upload&ver=4.9.8:2)
    at HTMLDocument.K (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-draggable,jquery-u&load[]=i-tabs,suggest,jquery-ui-position,jquery-ui-menu,wp-a11y,jquery-ui-autocomplete,underscore,shortcode,backbone,wp-util,moxiejs,pl&load[]=upload&ver=4.9.8:2)

In the primary language the wysiwyg field works fine, but in the secondary language it's missing buttons. See attached screencaps:

My php version is 7.1 so it isn't that