system_retrieve_file() not working correct

Hello Everyone, 

when I'm calling system_retrieve_file like:

$thumbnail = system_retrieve_file($thumbnail_url, NULL, TRUE, FileSystemInterface::EXISTS_REPLACE);

It will download the image into file system but when I try to print $thumbnail object it will have empty fid (file id). 

Note: when I ran the same code again with the same thumbnail url, it gave me the fid. 

Not sure why at first place fid is empty. 

Drupal VM vs Acquia BLT vs Acquia Desktop

I'm wondering which to use, what's the difference and/or advantage as compared to each other versus the traditional WAMP/LAMP/MAMP stack.

Also I change my laptop a lot, at least once a year as I get easily bored but I'm wondering if there was a to have all my developement tools and setup in abundle that is easily transferable from one system to the other without having to do that setup and settings and still have all my database dumb instack (a plug and play ark of sort).

Thank you.

Cannot Open User Page After Importing Users

Hi, 

I have created a custom migration module that simply imports users from a D7 site using Migrate Plus.  

I have five roles that get imported and it looks something like this:

The website encountered an unexpected error. Please try again later. [RESOLVED]

I installed the devel Module and upon reloading I got the above message. Obviously from the below error reportthe webprofiler part of DEVEL is giving me the grief. The question is how to fix it. I tried deleting the DEVEL Module through FTP and reloading the site with no luck (blank screen, but no error message) I then went to phpMyAdmin to find the module in the database (couldn't find any modules). So essentially I am stuck unless I can uninstall DEVEL outside of the interface.

I changed the settings.php to give verbose error handling and got the following:

Drupal 9 Theme Comparison

Hi,

I'm just coming back to using Drupal 9 after many years time off for taking care of my Mom.

I started blogging about teaching, my full time job, and revamping some Drupal 7 sites by downloading Drupal 9 and installing 32 Drupal themes to see what they looked like. I dunno if it will help someone, but I found this kind of quick comparison lacking on the Internet.

I'm a teacher, not a developer, and not the greatest with Drupal, so I'm just coming at it from the point of view of a relatively technical end user. So I hope this is helpful and not annoying.

Importing MP3 files as nodes

I have a client who wants to take a bunch of MP3s they're using for a kind of seminary school and make them available online. How can I import these into new nodes in Drupal? I believe there are modules for doing node imports using CSV files, but I can't see how I would attach the file. I am not sure what other mechanisms are out there for helping me accomplish this. Any suggestions?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x