Re: Helpful git commands

I just had to update the sample command - I had an extra parameter in the diff portion and a missing one in the archive portion.

It's all good now - just tested and created my update package.

Steve Twitter: @skenow Facebook: Steve Kenow

Topic


New article about Installing ImpressCMS on a VPS

Aaron Stuart just posted a very nice step-by-step article on WebSetNet about how to configure a Linux VPS from scratch in order to run ImpressCMS on it.
The article mentions it is written for Ubuntu 14.04, and if you want to do simple copy-paste of the commands you will need to get that OS on your VPS. However, if you're a bit at home in the Linux world, you should have no problem translating the commands to your specific tools and versions.

If you have this kind of setup routines that you have perfected throughout the years, please share!

Topic


Re: Helpful git commands

<p>There is a variant that is all git commands -</p>

<p><strong>git archive -o filename.zip [commit hash new] $(git diff --name-only --diff-filter=ACMRT [commit hash old] [commit hash new])</strong></p>

<p>It will create either a zip or a tar.gz archive, guessing which from the file extension. Or you can specify the type using -format=[type]</p>

<p>http://git-scm.com/docs/git-archive</p>

<p>Here's an example for getting the files changed between the 1.3.8 Final release and the 1.3.9 RC release:<br />
&nbsp;<br />
<strong>git archive -o impresscms-138-139rc.zip 8b451c0 $(git diff --name-only --diff-filter=ACMRT b182a01 8b451c0)</strong></p>

<p>I run this when I'm in my git repository directory for ImpressCMS</p>

<p><em>Edited Dec 31, 2018 to be able to see the commands</em></p>

Steve Twitter: @skenow Facebook: Steve Kenow



Re: Helpful git commands

Great contribution Steve, I'll try to integrate this into the Phing build file. Once we have the build file, that should make this kind of issues go away in newer releases I hope.



Helpful git commands

<p>Here's the first one - used it tonight to create the 'upgrade' package for 1.3.x to 1.3.8 Note: I use Ubuntu, so it won't work on a Windows machine!</p>

<blockquote>
<p>git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT [old commit hash] [new commit hash] | xargs tar -cvzf filename.tar.gz</p>
</blockquote>

<p>Here's how the command breaks down -</p>

<blockquote>
<p>git diff-tree -r [old commit hash] [new commit hash]</p>
</blockquote>

<p>Take a diff of the given commit to the older commit (including all subdirectories, not just the top directory).</p>

<blockquote>
<p>--no-commit-id --name-only</p>
</blockquote>

<p>Do not output the commit SHA1. Output only the names of the affected files instead of a full diff.</p>

<blockquote>
<p>--diff-filter=ACMRT</p>
</blockquote>

<p>Only show files added, copied, modified, renamed or that had their type changed (eg. file → symlink) in this commit. This leaves out deleted files.</p>

<blockquote>
<p>| xargs tar -cvzf filename.tar.gz</p>
</blockquote>

<p>Send the output to a tar.gz file. You can also run without this to just get a list, or send to a text file.</p>

<p></p>

Steve Twitter: @skenow Facebook: Steve Kenow



Re: 1.38 installation trouble

I also created a 1.3.x-to-1.3.8 zip file and added to the git release page. Be sure to test it out!

Steve Twitter: @skenow Facebook: Steve Kenow



Re: 1.38 installation trouble

We're still working out the nuances of github, and the link to the source files do not point at the corrected tag for this release. I have updated the release page and attached a proper zip file for this release.

You can download this for a full install https://github.com/ImpressCMS/impresscms/releases/download/v1.3.8/impresscms-1.3.8.zip

Steve Twitter: @skenow Facebook: Steve Kenow



Re: 1.38 installation trouble

Hi larrykh465,

I'll need some more info:
are you updating or installing from scratch
what file did you download?
what is your environment (PHP version, mysql version)?



Re: 1.38 installation trouble

  • 2015/8/27 3:59:44

Totally new newbee here but I am getting the same error,
Fatal error: Interface 'icms_db_IUtility' not found in /home/public/libraries/icms/db/legacy/mysql/Utility.php on line 52
from 1.3.8 that I got from this site on the 27th 1.3.6 popped right in.



Re: ImpressCMS Upgrade 1.3.7 to 1.3.8

  • 2015/8/26 9:59:49

Thanks for the link and the informative notes.



Re: ImpressCMS Upgrade 1.3.7 to 1.3.8

My fault, I'm still following what was on the wiki for the release procedure - here : http://wiki.impresscms.org/modules/wiki/index.php?page=Release_Procedure - that documentation needs some serious updates it seems



Re: 1.38 installation trouble

Hi, I pushed the newest bugfix by Skenow as the new 1.3.8final release.

It's not a good idea to go back and forth in the installer, it's not robust enough to support that without errors Your second error is no surprise in that case.

I tried an install starting from the 1.3.8final release (as available now on github and the site) on XAMPP with PHP 5.5.11 and I was able to finish the site installation without a problem.

There were 3 changes done in the bugfixes, so make sure you use that version.



1.38 installation trouble

Hi

I just tried to upgrade my local dev environment (PHP 5.5.25) with a clean 1.38 install. I get the following error on this page with both DB options:

http://192.168.1.99/dev/install/page_tablescreate.php

Notice: Use of undefined constant XOOPS_DB_TYPE - assumed 'XOOPS_DB_TYPE' in /share/MD0_DATA/Qweb/dev/libraries/icms/db/Factory.php on line 141 Notice: Use of undefined constant XOOPS_DB_TYPE - assumed 'XOOPS_DB_TYPE' in /share/MD0_DATA/Qweb/dev/libraries/icms/db/Factory.php on line 148 Fatal error: Class 'icms_db_legacy_XOOPS_DB_TYPE_Safe' not found in /share/MD0_DATA/Qweb/dev/libraries/icms/db/Factory.php on line 151


If I back up a few steps in the installer and try again I get a different error on the same page:

Fatal error: Interface 'icms_db_IUtility' not found in /share/MD0_DATA/Qweb/dev/libraries/icms/db/legacy/mysql/Utility.php on line 52


Any ideas?

I really should know better than to mess with my dev environment during a project, but you know, curiosity and cats...



Re: ImpressCMS Upgrade 1.3.7 to 1.3.8

  • 2015/8/23 17:18:44

Please excuse me. Then I got it wrong with the upgrade and had razed it right :) Yes, the Version Checker in the backend I see now that I have the latest version of ImpressCMS.

Then everything went well, thank you. Oh, then the upgrade for older versions is intended. I know that now.


Attach file:



png  impresscms138-versions-checker.png (12.09 KB)
3974__531655da62e4f3a9d.png 768X246 px


Re: ImpressCMS Upgrade 1.3.7 to 1.3.8

It looks like we have packaged the upgrade files incorrectly, Alex. The 1.3.7 - 1.3.8 should not have an upgrade folder in it. You can use that package, just delete the upgrade folder.

Login as an administrator to your site, upload and overwrite the existing files and then go to the Admin Control Panel to update the system module.

The upgrade folder is only necessary if you are upgrading from a very old version (1.0, or even older - XOOPS). I think going forward, we will only offer that on request.

Steve Twitter: @skenow Facebook: Steve Kenow



Re: ImpressCMS Upgrade 1.3.7 to 1.3.8

  • 2015/8/23 16:24:07

Hi Fiammybe,

thanks for the hints. I have now uploaded the remarks of the ZIP package to the server and wanted to call this: /upgrade/

Then I saw these errors.

Fatal error: Class 'IcmsDatabasetable' not found in /www/htdocs/xxxxxx/cms/impress/upgrade/upd-icms-1.0-to-1.1/index.php on line 71

I use MySQL.



Re: ImpressCMS Upgrade 1.3.7 to 1.3.8

Hi AlexL,
you should have no problems when you use the upgrade file, which I posted in the meantime on the github page : https://github.com/ImpressCMS/impresscms/releases/tag/1.3.8

Using the impresscms_1.3.x-to-impresscms_1.3.8.zip file, I have tested the upgrade from 1.3.7, and everything seems to be working as it should.

Let me know if you still have an issue with this file. Does your original site use PDO or mysql directly?



ImpressCMS Upgrade 1.3.7 to 1.3.8

  • 2015/8/20 18:10:41

Hello Webdevelopers,

I have learned that there is a new version of ImpressCMS and was about to upgrade from 1.3.7 to 1.3.8.

Do I have to upgrade right with /upgrade/index.php or is it already when I uploaded the new files to the server?

If I call in the browser /upgrade/index.php, I get this error appears:


Fatal error: Class 'IcmsDatabasetable' not found in /www/htdocs/xxxxxx/cms/impress/upgrade/upd-icms-1.0-to-1.1/index.php on line 71


What can it mean? Happy about your assistance. Thanks!



Re: errors on upgrade from 1.3.3 to 1.3.7

And don't forget to test that the backup actually works :)



Re: errors on upgrade from 1.3.3 to 1.3.7

ok great will do, but may wait a bit lol