backdrop-contrib / d2b_migrate

GNU General Public License v2.0
5 stars 6 forks source link

Error when clicking Download Available Projects #7

Closed albanycomputers closed 1 year ago

albanycomputers commented 2 years ago

On clicking "Download Available Projects" I get this error message...

Argument 1 passed to installer_browser_get_project_release_data() must be of the type array, null given, called in /home/sites/1b/7/79e5d41fd9/public_html/subdomains/backdrop/modules/d2b_migrate-main/d2b_migrate.module on line 380

Using PHP 7.2 Updated to PHP 7.4 - still the same Tried PHP 8.1 - still the same

This is the table of modules etc...

image

docwilmot commented 2 years ago

This suggests that some project data returned from BackdropCMS is NULL. Are you able to debug? Put a dpm($projects) just above foreach ($projects as $project) {?

juanolalla commented 1 year ago

I've seen a problem with Google Analytics module, which its real name as a module is googleanalytics, but it comes in a google_analytics folder which is the project name in drupal.org, and in Backdrop is googleanalytics, and that makes it to be null, because it doesn't match. This could be an issue from the update core module, but I'm not sure what would be the best approach and where to solve it.

For the moment I've added a condition to avoid the null problem, and the installer works.

irinaz commented 1 year ago

@docwilmot , does that mean that we can close this issue or we need more testing?

irinaz commented 1 year ago

@docwilmot , @albanycomputers , do you still see this problem or it has been fixed and we can close this issue?

albanycomputers commented 1 year ago

I'll have another try when I get back from holiday... mid-October.

irinaz commented 1 year ago

This steps seems to be working, I will label this issue closed. Please reopen if it does not work for you.