All posts by sheldon

[Solved] NextCloud 12 Can’t Access Admin Pages – Internal Server Error

If you are running NextCloud version 12 and you cannot reach the “Admin” area of the Web GUI because you receive an error message page that states that an Internal Server Error has occurred, here is a solution to this problem that worked for me.

Solution:  Try disabling and “removing” the OnlyOffice App.  Merely disabling the OnlyOffice App did not help.  Login as a user with administrative privileges, go to Apps, go to “office and text” apps category page, and click the “remove” link under the “OnlyOffice” app.  Now, go to the admin area and you will be granted access to the admin console area pages.

Not to worry.  The OnlyOffice selection will remain in the apps area.  When you click the button to “Enable” OnlyOffice, the enabling process will automatically download / import the necessary files (to connect NextCloud to your physically separate OnlyOffice server) that were previously removed.  

Background: 

I had installed Nextcloud version 11 on Ubuntu 16.04 and PHP 7.x without issue and within a few days received an update to Nexcloud version 12 which update I applied and it has been working fine.  I first tried to install OnlyOffice and later tried to install Collabora Online, neither of which worked for me, so I scrapped the idea of using those apps, and I disabled both Apps in the Apps management area of the Nextcloud Web GUI.   However, I recently noticed that I cannot access the Admin Console pages in the web GUI. Everything else in the Nextcloud web GUI can be accessed without error messages, but when I select “Admin” I get the following error message:

Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

The same issue and solution were found with the OnlyOffice App in NextCloud Version 11 as well. See:  https://help.nextcloud.com/t/nextcloud-11-cant-access-admin-console/11533

Alex W. Stewart is inducted into the Florida Boxing Hall of Fame

Alex W Stewart, professional heavyweight boxer, was inducted into the Florida Boxing Hall of Fame along with the entire class of 2017, such as Michael Moorer and Winky Wright. (Today June 25, 2017).

Alex would have enjoyed the ceremony and seeing everyone.  Unfortunately, Alex passed away on November 16, 2016, during this past Thanskgiving Holiday, at the young age of 52.  We miss him.

Alex’ professional record — 43 Wins (40 by K.O.) 10 Losses, 0 Draws.

Photo Source, Gettyimages, No commercial uses without permission. http://www.gettyimages.com/license/161748605

Install OnlyOffice Document Server on Windows Server with IIS

Downloaded the Document Server install file from:

https://sourceforge.net/projects/teamlab/files/ONLYOFFICE_DocumentServer/v3.0/binaries/

How to deploy Document Server on your server?

http://helpcenter.onlyoffice.com/server/windows/document/install-office-apps.aspx

Only office Help Center (link above)

General system requirements and recommendations are (for Document Server version 3.0 and later):

CPU dual core 2 GHz or better
RAM 2 GB or more
HDD at least 40 GB of free space
OS Microsoft Windows 8, Microsoft Windows 8.1 and later, Microsoft Windows Server 2012(R2) and later
Additional Requirements
Microsoft .NET Framework: version 3.5;
Internet Information Services: version 7 or later;
MySQL Server: version 5.1 or later;
Node.js: version 0.10.x (32-bit version);
Python: version 2.7;
Microsoft Visual Studio C++ 2010 Express;
Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package MFC Security Update (32-bit version);
Web Browser: Microsoft Internet Explorer 9 or later, latest versions of Mozilla Firefox, Opera, Safari, Google Chrome.

If you want to use Document Server together with Community Server, they must be installed on two different machines.

Install the prerequisites

Find the .exe file you have just downloaded (it will be located in the directory specified at Step 1) and double-click it to start the installation process.
The Prerequisites Wizard will be launched. It will help you to install some prerequisites required to run ONLYOFFICE:

Microsoft Visual C++ 2010 x86 (MFC Security update);
Microsoft Visual C++ Redistributable for Visual Studio 2013 x86;
MYSQL Connector/ODBC 5.3. or higher;
Node.js 0.10.x (32-bit version);
The Prerequisites Wizard automatically checks if the required components are installed on your PC.

The components that are missing on your PC will be checked. Click the Next button and follow the further Wizard instructions to install the missing components. This process may take some minutes.
If the required components are already installed on your PC, the Document Server Setup Wizard will be launched.

Remove ‘Powered By’ in Footer of Septera Theme by CryoutCreations

If you make this edit, please understand that you should either pay Cryout Creations $25 for support (and CC’s removal of their part of this “Powered By WordPress” footer segment), or please insert authoring credit for Cryout Creations elsewhere on your website for their development of this Septera theme.

First, on you website, locate the core.php file in the path wp-content/themes/septera/includes/

Next, create a backup of the original core.php file by copying this file to a location outside your website.  Then, come back and make your changes to the core.php file that is live online from your website. Understand that If you do not self-host your website on you own server, thus having direct access to the server file system and this core.php file, then you will likely need to access it via ftp to make a backup, perform the edit, and overwrite the original online file with your edited file.

You can edit the core.php file using a good text editor, such as the Notepad++ editor.  In core.php first locate the Footer Hook section from lines 235 to 248.  Insert //Rem at the beginning of those certain 4 lines (to disable them) as shown below:

/**
* Footer Hook
*/
add_action( ‘cryout_master_footer_hook’, ‘septera_master_footer’ );
function septera_master_footer() {
$septera_theme = wp_get_theme();
do_action( ‘cryout_footer_hook’ );
echo ‘<div id=”footer-separator”></div>’;
echo ‘<div id=”site-copyright”>’ . wp_kses_post( cryout_get_option( ‘septera_copyright’ ) ) . ‘</div>’;
//REM echo ‘<div style=”display:block;float:right;clear: right;font-size: .85em;font-weight: bold; text-transform: uppercase;”>’ . __( “Powered by”, “septera” ) .
//REM ‘<a target=”_blank” href=”‘ . esc_html( $septera_theme->get( ‘ThemeURI’ ) ) . ‘” title=”‘;
//REM echo ‘Septera WordPress Theme by ‘ . ‘Cryout Creations”> ‘ . ‘Septera’ .'</a> &amp; <a target=”_blank” href=”‘ . “http://wordpress.org/”;
//REM echo ‘” title=”‘ . __( “Semantic Personal Publishing Platform”, “septera”) . ‘”> ‘ . sprintf( ” %s.”, “WordPress” ) . ‘</a></div>’;
}

Click to expand the following screen capture image to see what this section looks like from within the Notepad++ editor.

footer hook in core.php

I tried using a child theme to make this change, but I was having some problems making it work.  This may have something to do with the priority of functions loading (i.e. the order in which functions are loading) between the child and parent themes. I changed some priorities in the add_actions and do_action of the child theme, but to no avail.  Let me know if you figure it out.  Send comments.  sheldon @ sheldonsblog.com.

Alternative way to make the same change.   You could also edit the core.php theme file from within the WordPress administrative dashboard.  On the dashboard menu, point at “Appearance” and select “Editor.”  Scroll down the file list on the right side of the editor page and select “core.php.”  //REM out the same 4 lines in the footer hook section as shown in the following screen image.  And click the update save button to save your changes.

How to Customize the Footer in WordPress Twenty Seventeen Theme

In the WordPress Admininstrator’s dashboard, select >Appearance, select >Editor, and select >footer.php from the list on the right margin.

Edit the footer.php file.

Locate this part of the footer.php file:

get_template_part( ‘template-parts/footer/site’, ‘info’ );
?>
</div><!– .wrap –>

Change that part as follows:

Insert “//” at the beginning of the “get_template_part” line in order to comment-out this line. Next, insert the 4 lines shown below between the “?>” line and the </div><!– .wrap –> line.

//get_template_part( ‘template-parts/footer/site’, ‘info’ );
?>
<div class=”site-info”>
<a href=”https://wordpress.org/”>Copyright 2017, Your site name</a>
</div>
</div><!– .wrap –>

Customize by fixing the URL — http://www.yoursitedomain.com/  and Your site name.

Save your changes / update / the footer.php file.

Note:  Your modifications will likely be overwritten in the next WordPress version update.  That’s okay.  And, it might be easier to again edit the footer.php after the version update rather than trying to figure out how to use a child theme that would preserve your modifications from being overwritten due to a version update.

“Always Hungry” E-book prologue Read by Author David Ludwig MD PhD

 

Endocrinologist at Boston Children’s Hospital and Harvard Medical School, David Ludwig, MD, PhD presents a groundbreaking diet program that debunks the myth that calorie balance is the key to weight loss and teaches readers how to reprogram their fat cells to lose weight without counting calories or feeling hungry.

Source:  https://soundcloud.com/hachetteaudio/always-hungry-david-ludwig   “SciFri 20160108: Always Hungry? Your Fat Cells May Be to Blame ” from SciFri 20160108 by Science Friday. Released: 2015. Track 5 of 6. Genre: Podcast.

View & Download->  Always Hungry Prologue and Chapter 1 (PDF)