Trying to access the 'Files' section of the admin console on a simple deployed SilverStripe website presents an error - silverstripe

I’ve recently picked up SilverStripe (v4.5) for a relatively small-scale website project, and haven’t had any issues with the system on my local development environment (XAMPP, with PHP 7.4.7, Apache v2.4.43, 10.4.13-MariaDB). However when the website is deployed, I am unable to access the ‘Files’ section of the admin console, with the error message:
Cannot query field “version” on type “File”. Did you mean “extension”?
I am still able to upload files (indirectly) through other elements in the CMS (UploadFields on pages / objects, for instance) and these uploaded files do appear in the database.
Initially we were running the site on nginx, but have since switched to apache2, which did not solve the problem.
Any advice on this would be much appreciated.
Thanks.

Thank you both for your helpful suggestions on this question. In the meantime I have been able to solve the problem, however I'm still unsure what the root cause of the issue was.
I started from scratch, created a new EC2 instance, installed all the SS dependencies from scratch and created a new project, then migrated my SS content into that project. In that new project, this issue had been resolved, as such I'm able to continue with my development.
My best guess would be some sort of version mismatch between the original SilverStripe project files and the dependencies installed on the original EC2 instance. I apologise for not being able to provide more clarity than that.

Related

EasyAdminBundle: configuration problem in production environment

I've been using EasyAdminBundle in a symfony 4 application generated using flex (composer req admin) for quite some time now. Recently I added a few entities to the existing EasyAdmin-configuration. In my development environment they show up as excepted, but a soon as I switch to production these new entries are gone. I already cleared/warmed the cache, checked for production specific configuration files, read the symfony docs several times, watched the easy admin tutorial series on KnpUniversity and even deployed to a second server. ;-)
There must be some kind of production specific configuration I'm totally missing. Does anyone have a hint where to look?
I really appreciate any idea! Thanks!

Deployed Wordpress on Bluemix.net using a Boilerplate - Now I can't figure out how to add a new plugin

I learned the hard way that plugins can and will disappear if I add them via the UI. According to the help: "Bluemix, like other cloud platforms, has an ephemeral filesystem. Every time you push or restart your app, the container that stores the files for your app is destroyed and recreated. If you update the WordPress Core from the UI, then the update is rolled back when your app is restarted."
So I'm now trying to add them via the Cloud Foundry command line interface as suggested in the help docs.
I downloaded the application starter code, extracted it to a New_folder, downloaded the plugin I wanted, extracted that to the New_folder/wp-content/plugins/ and then tried to do a cf push. I got no errors but the plugin is not showing up in the wp-admin page.
Total Wordpress newbie here... Can anyone provide me any clues on what I'm doing wrong or steps I'm missing? Has anyone else tried this?
Ok got it working. I figured it out with help from the Bluemix dev team, here is what they said:
We are still waiting for our updated documentation to land. We should have synchronized the updated deployment with the corresponding documentation updates, sorry for the trouble.
Until the docs at https://www.ng.bluemix.net/docs/#starters/wordpress/index.html#wordpress are updated, please follow the steps posted at https://developer.ibm.com/answers/questions/181148/wordpress-changed-wordpress-file-not-uploaded/#answer-181784 and report back if you have any trouble.

How do I install the following files when I already have WordPress installed on my server?

How do I install the following files when I already have WordPress installed on my server? The developer gave me a folder that has the WordPress core files and then there is a .sql file that I don't know what to do with. Any help would be appreciated.
First: are you just trying to get a theme installed on your WP environment or are you trying to replicate everything that the developer before had set up?
If the answer is full replication - what's your level of understating with phpMyAdmin? If the answer is "limited" then I'd advise pulling in a developer to take this project on as it'll need some skill with phpMyAdmin. They should know what to do with the files & have the ability to get that existing data (the .sql) file in to the right place - doing it yourself could have some unintended results (wiping out all your data)

Where do I place my own code whilst using Vagrant+Chef+Wordpress (VCCW) repository cloned from GitHub?

I ran across the VCCW project and despite my unfamiliarity with Vagrant and Chef, decided to give a try. I followed their instructions and obtained the VCCW project itself by installing the GitHub Windows program and cloning the VCCW GitHub master repository. I should also mention that I have very little experience with Git.
Anyway, now I have VCCW Wordpress running on my machine, but I've no clue what to do from here. I wanted to set up a better and more formal Wordpress development environment so I could write my plugin and modify a theme, but I don't know where I should do that. I know where the actual Wordpress installation resides on my file system, so I suppose it would be easy to work from there, but I don't know how (if at all) that interplays with the Vagrant workflow - ie, when it comes time to use Vagrant to deploy my site, will my changes to the "www" folder (which was created by vagrant up) be captured? Somehow I doubt this. Just looking for any help as to how all these fancy new tools work with each other and what a humble PHP developer like myself should do to get started.
Edit: One more question: which IDE, if any, can I use in conjunction with this arrangement? Create a new project from existing sources, and let it pollute my deployment folder with project files?
From the Vagrantfile, it looks like you should look in ./www/wordpress after provisioning.
VCCW includes deployment tool WordMove.
You can deploy WordPress into your server from vccw if you set Movefile.
Movefile will be created automatically after provisioning, so you should add your server configuration in Movefile.
http://vccw.cc/#h2-10
https://github.com/welaika/wordmove

Installing third-party Drupal modules on Azure

I've just started playing around with the new "Website" feature in Azure that allows you to create websites with just one step - and also allows you to create websites from a "Gallery", including Drupal. And I can get my Drupal site up and running, no problem. But if I try to add a third-party module (for instance, Mindtree's ODataDrupal), then I get this error message:
Installation failed! See the log below for more information.
odata_support
Error installing / updating
File Transfer failed, reason: Cannot chmod /DWASFiles/Sites/theparentsunion/VirtualDirectory0/site/wwwroot/sites/all/modules/odata_support.
More-or-less the same thing happens if I try to update some of the existing modules (which Drupal warns, with big red flashing letters, are out of date), except then my Drupal install is left crippled, with no way to fix it that I've been able to find.
Is this as-designed, or some limitation of the beta website integration? (Because a Drupal installation is kinda worthless if you can't add new modules to it, or update existing ones.) Or am I doing something wrong?
If you are trying to use plugins and 3rd party modules to Drupal based Windows Azure Websites, the results may vary person to person. This is mainly because the kind of configuration needed by specific module or plugin may or may not be supported by Windows Azure Websites model and not all kind of custom configuration will work on Windows Azure Websites and you would need to move to Windows Azure Virtual Machines.
About application specific structure, what you can do is open the websites FTP folder and whatever you could see there is user configurable, so you can configure it the way you want. However if you application will try to make changes to outside its limited scope, you will hit errors as above.
Here is a case study where Azure VM was used for Drupal based migration which shows that for complex application you may need to use AZure VM rather then Azure Websites.

Resources