How do I unstage a Moodle update - moodle

After logging in to my Moodle as admin, I clicked the link to update to the latest available Moodle version. However, the new version won't work with my hosting site's MySQL version. Simple enough, I just selected the cancel button. Nope. The cancel button does nothing. Additionally, whenever I log in as admin, I am redirected to the update confirmation page where I can't actually perform the update or cancel the action. The web hosting service restored a previous version from backup, but the very next time I logged in as admin I was right back at the same update page.
Is there any way to unstage/delete/remove the "I want to update my Moodle" flag/action/request/whatever from the Moodle database/data files?
Thank you for your help!

When you download the new version of Moodle, it overwrites the existing files. You need to move all your files from the Moodle code directory (NOT your Moodle data directory) into another directory, then download a clean copy of your previous version of Moodle (from Moodle.org) and place it in your original directory.
Once that is done, you will need to copy across your config.php file, along with any extra plugins you had installed.
After that, you should be able to log back into your site and it should be back to running as normal again.
Before you do any future upgrades, there is a compatibility check built into Moodle itself (I think it is somewhere under site admin > server, but I don't have a site open at the moment to check). It is worth looking at that before downloading the upgrade.

Related

macOS. Replace application in Shared folder with admin priveleges

Our app is being stored in /Users/Shared/OurAppData/OurApp.app.
One of the reasons for this is to enforce user to use launcher.
But, now we've met the problem, when we want to update our app through the launcher(we download zip file, extract that and that wants to replace our app with the new one with)
try FileManager.default.replaceItemAt(URL(fileURLWithPath : Paths.ourAppPath) , withItemAt: extractedURL)
"You don’t have permission to save the file “OurApp” in the folder “ OurApp Data”."
My question is - is there a way to handle that situation?
I guess the best solution to promt user for login and password for permissions, and to replace that file? I guess this is something outside the Swift scope, and probably AppleScript, or even .sh.
Please, help.
Thanks
I recommend to have a look at the Sparkle framework for updating applications.
Sparkle handles the checking if an update is available, downloading the update, asking for an administrator password if required, and cleaning up the downloaded files after the update.
For most application it is enough to just have the new version archived as zip archive.
But it is also possible to update application with helper applications or agents which are outside of the main application bundle.
This can be done with installer package *.pkg. If you are familiar with Sparkle, the "Automatic installation" referred here will only show the Sparkle UI. In the background it will use macOS’s built-in command line installer, /usr/sbin/installer.
In most cases it will make sense to have the same .pkg as user facing installer and update, it is not required.
If your application is sandbox, there are a couple of forks of the framework.

php auto update script files

How can I create script version update function like in datalife engine cms ? For example customer has version 1.0 and I have created version 1.5. And I want the user to be able to update the script version directly from admin panel. How can I do it ?
Notice: This is my own solution.
#Guilherme Soster has provided the basics on how to do it. However if you do not want to do it yourself you can check my php-updater solution. You can define what you want to add (overwrite or add) and delete as well as scripts you want to run in a YAML file.
well, basically you'll have to store the user system's version in some config file or database and have a server where you keep the latest version of your scripts.
Then when the user request to check for updates (or each time that the software runs) your update script should hit the server and get the latest version number, compare it with the one your user has stored and if the user one is inferior the script should download the new scripts from the server (usually to a temp directory). Now all that the update script has to do is remove the old scripts and move the new ones to the directories where they belong. Finally the update script should update the version in the confi file/database.

Zencart zc_install/index.php page showing blank

I am trying to install reinstall zencart setup again on the following link:-
http://hobbystii.ro
But when i click to start the setup it shows a blank page. I am not able to understand the problem. Can please anyone help.
For my confirmation i deleted the database cleaned everything and tried reinstallation but same error showing blank screen.
I suggest you rename the install directory "install" to start with; that is the original name if i remember correct. And try replacing the folder with original one from ZIP file.
However the best option would be to do a fresh install since your existing database will be wiped during an install either way. After doing so you can simply copy your theme files across or if you have customizations attempt copying the entire code from previous install across. Make sure to keep backups of everything and replace the configuration files for both admin and user side with that of the new one.

Can't create new sites and pages in Teamsite

I've just installed Teamsite on Linux CentOS 6.5. I've used Silent Installer and mostly default properties (install.properties), I logged in as a root user and everything seems to be good but the problem occurs when I'm trying to create New site or New page. I click as a usual File -> ... and there is only New File, New Branch etc. but there is no New Page or New Site button. Do you know what could went wrong during the installation or what can I do to "restore" this buttons and create sites/pages? Thx.
Ensure you are under a Workarea. Create a workarea under a branch and give it a try.
If you are already under a Workarea, then this would the issue with your license. Have you generated right licence from the official license website from HP Autonomy.
The Features are tied to License what you have. Just to cross verify if you do not see SiteMap TAB next to Content and Workflow ( just above file menu ) that indicated you are missing a full licence.
Please generate new licence and try deleting old and start Teamsite server issuing iwreset -a command.
Let me know if this helps.

In Magento after installing extension Admin panel in unable to load

As I have assigned to work on magento, according to our requirement i tried to install Arabic extension for magento. The extension got successfully installed. Later on refreshing the admin panel, it shows the URL not found. The Stores FrontEnd CMS home page is loading, But when Iclick on any products, it shows again URL not found..
How can i solve this...
When diagnosing things like this, try the following..
Delete (or move to another folder) files in /var/www/var/cache
Delete (or move to another folder) files in /tmp
From a shell, run
/var/www/shell$ php indexer.php --reindexall
You've just manually cleared your caches and re indexed your data.
See if your system comes back to life.
For me I was redirected to wrong URL from MagentoConnect after installation of extension.
My admin URL: <-hostname->/index.php/admin
Redirected To: <-hostname->/admin
I had same issue when I added extension manually. I could find the issue when checked via shell command and it returned missing table error. This is issue happened when I installed module manually.