Skip Navigation

[Resolved] After manual Migration of the site with Modules some stuff not working properly

This support ticket is created 6 years, 2 months 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 10 replies, has 4 voices.

Last updated by Christian Cox 6 years, 1 month ago.

Assisted by: Christian Cox.

Author
Posts
#1109547

I have transfered my Site Manually. I have used the Toolset Module Manager for Import/Export all Modules i needed, After Migration some things stopped working.. i am having a problem with loading stuff .
for example when i open a page that is edited with Toolset Layout, when i click on "edit with Layout" Layout opens but the loading bar doesn't stop loading and cant really edit the page. for this was the only solution to create a new page and stop editing the old page with layout, and then copy the code manually to the new page.. but this is time consuming.

one more thing i have noticed that the "Layout CSS & JS" editors are not getting loaded at all. All my CSS and JS inserted there are not getting loaded!

I had to Replace some static links with the plugin Velvet Blues Update URLs. I am not sure the Issue came from here but very weird with the Layout CSS and JS Editor..

I am using now a Child theme as well. on the first website before migration it wasn't a Child Theme .. so i tried to switch back to the normal Theme "non child" but this didnt solve the Issue.

#1110244

Hello,

The problem you mentioned above is abnormal, please try these:

1) Upgrade to the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/
For example, the latest version of Types plugin is 3.1, but you are using version 3.0.8

2) In case it is a compatibility problem, in both websites(original website and target website), deactivate other plugins, and switch to wordpress default theme 2017, and test again

3) If the problem still persists, please provide the credentials of both websites, I need to test and debug it in live website.

#1111272

I have tried the credentials you provided above:
https://toolset.com/forums/topic/after-manual-migration-of-the-site-with-modules-some-stuff-not-working-properly/#post-1110426

It isn't an valid administrator account, please check it.

Also I am asking for both websites credentials, you have provided only one, is it the original website?
I have enabled the "private detail box", please provide both websites credentials (original website and target website), also point the problem module URL, which module conduct the problem, and where I can see the problem:
for example when i open a page that is edited with Toolset Layout, when i click on "edit with Layout" Layout opens but the loading bar doesn't stop loading and cant really edit the page. for this was the only solution to create a new page and stop editing the old page with layout

#1111417

Thanks for the details, I can login your website, in this page:
hidden link
I can see below JS errors:
Uncaught SyntaxError: Unexpected token a in JSON at position 152

There might be some broken data while the migration, please provide a database dump file of original website hidden link, in below, which one is the problem module?
hidden link

please provide a database dump file of the problem site:
hidden link

I need to duplicate the same problem and debug it in my localhost, thanks

#1117087

Thanks for the details, I can download those files, will update here if there is anything found.

#1118220

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Luo is on vacation. This is Minesh here and I'll take care of this ticket now. Hope this is OK.

Is it possible for you to send me duplicator copy of your site?
=> https://toolset.com/faq/provide-supporters-copy-site/

#1119731

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - could you please point me to exact URLs which are working and URLs that are not working?

Additionally, I would like to know using which module manager plugin version your import/export the modules?
Could you please share modules zip which you imported?

I have set the next reply to private which means only you and I have access to it.

#1120834

4- now you can open the Layouts CSS and Layouts JS. you will see the same CSS code that you have deleted but is not getting loaded.
The home page is not using Layouts. No Template Layout or Content Layout is in place for the page, so the Layouts CSS file is not loaded. It looks like you are using Elementor instead, so I recommend placing this CSS in the Elementor editor somehow. We do not recommend using Toolset Layouts and Elementor together. You should deactivate one of these two page builder plugins, because they are incompatible.

as well when i try to edit a page that using Layouts editor the Editor doesn't stop loading.
Again, we do not recommend using Layouts and Elementor together. One of these plugins should be disabled, or you may experience unpredictable, unresolvable problems.

#1120859

Hi Christian,
Thanks for your Reply.

-- Issue one --
"The home page is not using Layouts. No Template Layout or Content Layout is in place for the page, so the Layouts CSS file is not loaded. It looks like you are using Elementor instead, so I recommend placing this CSS in the Elementor editor somehow. We do not recommend using Toolset Layouts and Elementor together. "

Well Thats not right, this Page is using only Layouts! Elementor is not used there at all: hidden link
You can edit the same page here with layouts : hidden link
but anyway you wont be able to edit it because we still have the issue with the loading bar (wont stop loading).

is it possible that content templates don't load css from Layout CSS & JS? i have two content templates added to that page (the top Bar is a Content Template & the Sidebar Menu is a Content Template). in the content Templates i didn't add extra CSS or JS. i am just using some global custom CSS that are added to the Layouts CSS and JS.

-- Issue two --
I am not using Elementor there either. This page is using Layouts only and it was working perfectly and everything normal before migration. please see my last comment and try to check the difference between original page and migrated page. (subdomain (400) is original and subdomain (toolset) is migrated

BTW i have already deactivated all plugins and Elementor too but this is not helping. Luo has mentioned before there are some JS links that are broken here : https://toolset.com/forums/topic/after-manual-migration-of-the-site-with-modules-some-stuff-not-working-properly/#post-1111417
maybe this?

#1120890

Sorry wrong URL

please replace tat.ly/c with tat.ly/toolset

#1120951

Oh sorry, I was looking at the home page instead of the link - I can't read Hebrew and got confused 🙂 Now I can see the issue you described in the Layout editor, and I can see that the Layout JSON has become corrupted somehow. The JSON that includes the specs for this Layout is loaded with AJAX, and you can inspect the results in the browser console. Somehow that code has become corrupted. This is why the loading bar never stops loading and probably also why the Layouts CSS isn't being applied when the page loads. Here is the corrupted JSON code:

{"type":"fluid","name":"Layout for page 237","cssframework":"bootstrap-3","template":"","parent":null,"Rows":[{"Cells":[{"content":{"content":"<div id="asideBar" class="asidebar">n  n  [wpv-post-body view_template="admin-side-dash"]n  n</div>nnn<div id="main-content">n  nt[wpv-post-body view_template="admin-top-dash"]n tn  t<div class="row m-0">n tn      t<div class="col-12 bg-gray py-4">n        ntt[wpv-post-body view_template="admin-main-dash"]n    ntt</div>n nt</div>nn</div>","responsive_images":true,"disable_auto_p":true,"disable_the_content_filter":true,"unique_id":"s10","visual_mode":false},"kind":"Cell","cell_type":"cell-text","column_prefix":"col-lg-","name":"Visual Editor","cssClass":"span12","cssId":"","tag":"div","width":12,"row_divider":1,"additionalCssClasses":"p-0","editorVisualTemplateID":"cell-text-template","id":"s10","displays-post-content":false}],"cssClass":"row-fluid","kind":"Row","row_type":"row","layout_type":"fluid","mode":"full-width","name":"Row 1","cssId":"","tag":"div","width":1,"row_divider":1,"additionalCssClasses":"","editorVisualTemplateID":"","id":"34"}],"width":12,"cssClass":"span12","id":"237","kind":"Layout","has_child":false,"slug":"","has_loop":false,"has_post_content_cell":false,"column_prefix":"col-lg-","no_default_prefix":false,"cssId":"","tag":"div","row_divider":1,"additionalCssClasses":"","editorVisualTemplateID":"","layout_type":"private","owner_kind":"page","field_kind":null}

You can see the syntax is wrong because double quotes are nested without any escaping characters, breaking the JSON structure. I'm not exactly sure how that happened but I will be glad to investigate. Can you tell me more about this Page?
- Was this Page imported from another site, or created here on this site?
- If it was imported, can you explain how you imported the site content?
- Was the Content Layout created here on this site or did you copy + paste the JSON from another Layout?

As a test, I created a new page here: hidden link
I created a Content Layout here: hidden link
The Layout editor works well here, so my guess is that something was corrupted either during an export / import process, or there was a problem with some of the content in the Content Layout that caused the JSON code to be corrupted in the database.