Jump to content

ProcessDbMigrate


MarkE
 Share

Recommended Posts

Not of my testsite no. I tried now to install to a clean testsite and it installed the module and the migrations link is under setup but on click

Snapsicles… Compile Error: Class declarations may not be nested (line 9 of E:\Wamp\www\Test2\wire\core\WireDebugInfo.php)

FYI I´m using the master version 3.0.229 on localhost/Wamp.

Edited by Flashmaster82
Link to comment
Share on other sites

45 minutes ago, Flashmaster82 said:

Compile Error: Class declarations may not be nested (line 9 of E:\Wamp\www\Test2\wire\core\WireDebugInfo.php)

That's odd. This is where it is really helpful to install TracyDebugger! It really is 100% recommended when trying to debug. 'Compile error' would normally indicate a problem with just the file in question (WireDebugInfo.php). Are you sure it hasn't been corrupted? What does your IDE show for that file?

Link to comment
Share on other sites

Migration Actions
Help (link)

Fatal error: Uncaught Error: Call to a member function bd() on null in E:\Wamp\www\Test1\site\modules\ProcessDbMigrate\DbMigrateHelp.php on line 3
( ! ) Error: Call to a member function bd() on null in E:\Wamp\www\Test1\site\modules\ProcessDbMigrate\DbMigrateHelp.php on line 3.

 

PagesEditor: Error saving field "Migration item" — Can’t save page (id=1065): /admin/repeaters/for-field-121/for-page-1062/1727215638-3146-1/: Call $page->of(false); before getting/setting values that will be modified and saved. [Page::statusCorrupted] fields: dbMigrateType, dbMigrateAction

 

On Migration Actions i cant see "install migration". And also the DB backup, is that a separate module or should that be installed with this module? Its a bit confusing. I dont know how to migrate from one database to another, is there an upload or something?

Edited by Flashmaster82
Link to comment
Share on other sites

25 minutes ago, Flashmaster82 said:

Fatal error: Uncaught Error: Call to a member function bd() on null in E:\Wamp\www\Test1\site\modules\ProcessDbMigrate\DbMigrateHelp.php on line 3
( ! ) Error: Call to a member function bd() on null in E:\Wamp\www\Test1\site\modules\ProcessDbMigrate\DbMigrateHelp.php on line 3.

v2.0.23 now available should fix that. Just upgrade from the module config (backup first just in case..).

26 minutes ago, Flashmaster82 said:

On Migration Actions i cant see "install migration". And also the DB backup, is that a separate module or should that be installed with this module? Its a bit confusing. I dont know how to migrate from one database to another, is there an upload or something?

At the moment the only 'migration' you will have is the bootstrap to install the module. Please read the help file to understand how to use the module.

Link to comment
Share on other sites

Warning: Attempt to read property "id" on null in E:\Wamp\www\Test1\wire\core\PagesEditor.php on line 317

PagesEditor: Error saving field "Migration item" — Can’t save page (id=1070): /admin/repeaters/for-field-102/for-page-1067/1727216184-5518-1/: Call $page->of(false); before getting/setting values that will be modified and saved. [Page::statusCorrupted] fields: dbMigrateType, dbMigrateAction
Bootstrap not fully installed - Attempting re-install.

Link to comment
Share on other sites

1 hour ago, Flashmaster82 said:

Warning: Attempt to read property "id" on null in E:\Wamp\www\Test1\wire\core\PagesEditor.php on line 317

PagesEditor: Error saving field "Migration item" — Can’t save page (id=1070): /admin/repeaters/for-field-102/for-page-1067/1727216184-5518-1/: Call $page->of(false); before getting/setting values that will be modified and saved. [Page::statusCorrupted] fields: dbMigrateType, dbMigrateAction

What were you trying to do?

Link to comment
Share on other sites

22 hours ago, Flashmaster82 said:

The first error was when i click on help under Migration Action. And the second error was when i created a new migration and hit save.

Hmm. I can't replicate either of those. I'm not sure exactly what you are trying to do and would really need more details and a backtrace (from Tracy) to see what is going on. 

While I am happy to try and debug what I can remotely, I wonder if you actually need ProcessDbMigrate at this time. Your comment

On 9/24/2024 at 10:39 PM, Flashmaster82 said:

And also the DB backup, is that a separate module or should that be installed with this module? Its a bit confusing. I dont know how to migrate from one database to another, is there an upload or something?

seems to indicate that it is early days for you with ProcessWire. You don't need ProcessDbMigrate to copy a whole database from one environment to another. The ProcessDatabaseBackups module does this for you (or you can just use phpMyAdmin, but the module is easier). You only need something like ProcessDbMigrate to selectively update parts of a database in one environment from elements in a database in another environment. Typically this is the case with web apps rather than simple websites. The full description of what it does is available here.

Link to comment
Share on other sites

  • 1 month later...

@MarkE Love this module, thank you for sharing it. My brain works better with the way this module works than other migration modules I've tried.

I have it setup and working perfectly in 1 installation.

Using it for a second site, and keep running into an issue after installation.

Immediately after installing in Dev site on my local machine, the page response time goes from <100ms to 1,000-1,500ms, and I think the reason is that on every single page load, the message is at the top:

Bootstrap not fully installed. Attempting to reinstall...

And also a list of 70 or so pages that have been modified or changed. This happens on every page load, front-end, back-end, doesn't matter.

I think because the bootstrap migration is not installing, it is attempting on every page load, which slows down the site. I did not run into this before on my other site.

How can I troubleshoot to figure out what is keeping the bootstrap from completing?

image.thumb.png.cb957dac4c19f4c44eee3896e19f5411.png

  • Like 1
Link to comment
Share on other sites

40 minutes ago, rastographics said:

Immediately after installing in Dev site on my local machine, the page response time goes from <100ms to 1,000-1,500ms, and I think the reason is that on every single page load, the message is at the top:

Bootstrap not fully installed. Attempting to reinstall...

Firstly (after taking a backup), try updating to the latest version 2.0.24 which fixes a few bugs and should be a bit faster.

Second, try and ascertain the cause of the problem, by using the preview on the bootstrap page to identify the differences. You might be able to fix them manually in the database. Otherwise, let me know what it says.

Lastly, as a temporary fix, try unchecking 'Auto-install bootstrap' on the module config page and seeing whether it works OK.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...