Uploading zip file to Elementor in Wordpress - wordpress

I'm trying to upload a zip file with 201 files which are page sections for Elementor. I can do it one file at a time if I extract the zip file but WP should be able to extract and install them all at once from the zip file. Tried Googling it but most of the answers pertain to upping the PHP max post size. This is set at 8M and the zip file is 373K. If I upload it from within Elementor it seems to hang and if I upload it through my templates it quickly refreshes and shows the same templates that were already there. Here is my system info:
== Server Environment ==
Operating System: Linux
Software: Apache
MySQL version: 5.5.56
PHP Version: 7.2.8
PHP Max Input Vars: 1000
PHP Max Post Size: 8M
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected
== WordPress Environment ==
Version: 4.9.7
Site URL: http://stevenbuick.co.uk/wordpress
Home URL: http://stevenbuick.co.uk/wordpress
WP Multisite: No
Max Upload Size: 4 MB
Memory limit: 64M
Permalink Structure: /%postname%/
Language: en-US
Timezone: 0
Debug Mode: Inactive
== Theme ==
Name: OceanWP
Version: 1.5.21
Author: Nick
Child Theme: No
== User ==
Role: administrator
WP Profile lang: en_US
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36
== Active Plugins ==
Elementor
Version: 2.1.6
Author: Elementor.com
Ocean Demo Import
Version: 1.0.9
Author: OceanWP
Ocean Extra
Version: 1.4.19
Author: OceanWP
== Debug ==
Errors: There are no errors to display
I've tried disabling all the other plugins but still no joy.
Any help would be greatly appreciated.

go to cpanel wp-config.php file and paste define('WP_MEMORY_LIMIT','256M'); this line bellow to define('WP_DEBUG', false);
and the upload zip file, it works.

Related

How to install JupyterLab and Jupyter Notebbok in Rstudio Workbench?

Currently in my Studio Workbench I can start an RStudio session. However I would like to be able to use other editors like JupiterLab and Jupiter Notebook.
So forst I used the rstudio-server license-manager status command in the VM, and I get this:
RStudio License Manager 2021.09.0+351.pro6
-- Local license status --
Status: Activated
Product-Key: TAGE-TFK8-EIFJ-CLNS-AOSU-OI96-NBFY
Has-Key: Yes
Has-Trial: Yes
Enable-Launcher: 1
Users: 125
Sessions: 0
Expiration: 2022-12-31 00:00:00
Days-Left: 229
License-Engine: 4.4.3.0
License-Scope: System
-- Floating license status --
License server not in use.
So according to me the launcher is activated here.
Then I created a file jupyter.conf which has the path /etc/rstudio/jupyter.conf and I filled it as follows:
# /etc/rstudio/jupyter.conf
jupyter-exe=/usr/bin/jupyter
labs-enabled=1
notebooks-enabled=1
session-cull-minutes=240
default-session-cluster=Kubernetes
default-session-container-image=rstudio:jupyter-session
Then concerning the version of Jupiter I do not know if in my case I can put :
version-notebook=auto
Or if I need to specify the version, for example :
# /etc/rstudio/jupyter.conf
lab-version=3.0.6
notebook-version=6.2.0
Concerning the Launcher configuration, my launcher-mounts file located in /etc/rstudio/launcher-mounts is filled as follows:
# Required home directory mount for RSP, Launcher, and Kubernetes
MountType: NFS
Host: 172.16.128.2
Path: /user_workspaces/{USER}
MountPath: /home/{USER}
ReadOnly: false
Cluster: Kubernetes
Can you tell me what is missing to be able to start a Jupiter session please?
thank you in advance.

How to debug a wordpress plugin that gives timeout

I have a site that have some plugins, and one of those plugins (facebook for woocommerce) is loading until it returns a timeout error (504). I can change some constants in wp-config.php, but none of them works when I need to debug a timeout.
I tried to remove every configuration and file that I found from this plugin and then reinstall it, but the error is still there.
I tried to deactivate every other plugin, but woocommerce and the error is still there.
I looked for some debug plugins, but I only found plugins that change wp-config.php constants and do some logs at files. It is useless, I can do this.
I tried to put some "die" with messages in plugin's code, but nothing changed.
Server log just shows this:
x.x.x.x - - [09/Nov/2020:17:52:56 -0300] "xxxxx.com" "GET /wp-admin/admin.php?page=wc-facebook HTTP/1.1" 504 160 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0" "-"
I don't know what I can to do to debug this timeout, I've tried everything I know with the wordpress.
I solved by asking on plugin's forum: https://wordpress.org/support/topic/plugin-page-giving-timeout-504/#post-13687667
I just needed to activate WP_DEBUG and WP_DEBUG_LOG flags. I discovered the line that was breaking the site and then I could properly debug and find the problem.

Wordpress gives 500 error on search results on different server

Background
We have developed a WordPress website on a staging server with a custom theme and a custom search.php to display the results. This worked like a charm with no errors or warnings in the log.
When the website was put on a different environment (Windows VM), the search results would give a 500 error.
What have we've tried
Since the search works on the staging and not on the live server, we have compared the server specs and PHP installs. These are results from a site check on the live server
Server architecture: Windows NT 10.0 AMD64
Web server: Microsoft-IIS/10.0
PHP version: 7.2.18 (Supports 64bit values)
PHP SAPI: cgi-fcgi
PHP max input variables: 1000
PHP time limit: 300
PHP memory limit: 256M
Max input time: 60
Upload max filesize: 20M
PHP post max size: 8M
cURL version: 7.64.0 OpenSSL/1.1.1b
Is SUHOSIN installed?: No
Is the Imagick library available?: No
This is the staging server:
Server architecture: Linux 4.19.8-x86_64-linode120 x86_64
Web server: nginx/1.13.6
PHP version: 7.3.2 (Supports 64bit values)
PHP SAPI: fpm-fcgi
PHP max input variables: 3000
PHP time limit: 120
PHP memory limit: 256M
Max input time: 60
Upload max filesize: 64M
PHP post max size: 64M
cURL version: 7.60.0 OpenSSL/1.0.1e
Is SUHOSIN installed?: No
Is the Imagick library available?: Yes
.htaccess rules Custom rules have been added to your .htaccess file.
The PHP version is recently set to 7.3 on the staging server for testing purposes. I have also checked if all required PHP components are installed on the live server, and that's the case.
Question
What do you suggest I try next? PHP version 7.2 or 7.3 doesn't seem to be the issue, the big difference I see is that maybe it's not working because it's on a Windows server, but the rest of the website works fine.
The error is found. I've used short PHP opening '' at one point and that wasn't configured on the new server in the php.ini.

Wordpress - The ssh2 PHP extension is not available

I use SSH keys in my wp-config since a long time. Updates, plugin installation and removal, all worked well. After the last apt-get update wp is asking for the FTP password when I try to install for example a plugin.
There was no change done to the wp installation nor the file or directory permissions. I did not update wp either.
define('FTP_PUBKEY','/home/wp-user/wp_rsa.pub');
define('FTP_PRIKEY','/home/wp-user/wp_rsa');
define('FTP_USER','wp-user'); define('FTP_PASS','');
define('FTP_HOST','127.0.0.1:22');
Ubuntu 14.04
WORDPRESS VERSION: 4.7.6
PHP VERSION: 5.5.9-1ubuntu4.22
WEB SERVER INFO: Apache/2.4.7 (Ubuntu) OpenSSL/1.0.1f
EDIT:
I added below to my wp-config to see if it changes something.
define('FS_METHOD', 'ssh2');
No I'm getting a different error message in the WP backend:
The ssh2 PHP extension is not available
...but ssh2 is installed and loaded:
# php -m |grep ssh2
ssh2
Seems to be a bug in libssh2-php...
https://bugs.launchpad.net/ubuntu/+source/php-ssh2/+bug/1617294
Installing the WP plugin below allows me again to install/update as before.
https://en-ca.wordpress.org/plugins/ssh-sftp-updater-support/#description

Admin notifications from WooCommerce not working, customer notifications are

I have a WooCommerce store here: http://vanuatucoffeeroasters.com
Sometime between Jan. 17 and Jan. 26, the admin email notifications stopped working. However, when I place an order, I get a user email notification just fine.
What I have tried:
Testing wp_mail using Email Log plugin (sends successfully)
Testing PHP Mail using PHP mail test script (sends successfully)
Sending email to the email address that's not receiving notifications (successful)
Whitelisting the IP address of the sending server (no effect)
Deactivating and reactivating WooCommerce (no apparent effect)
Here is my system report:
WordPress Environment
Home URL: http://vanuatucoffeeroasters.com
Site URL: http://vanuatucoffeeroasters.com
WC Version: 2.4.10
Log Directory Writable: ✔ /nfs/c07/h01/mnt/99231/domains/vanuatucoffeeroasters.com/html/wp-content/uploads/wc-logs/
WP Version: 4.3.8
WP Multisite: –
WP Memory Limit: 40 MB - We recommend setting memory to at least 64MB. See: Increasing memory allocated to PHP
WP Debug Mode: –
Language: en_US
Server Environment
Server Info: Apache/2.2.22
PHP Version: 5.6.21
PHP Post Max Size: 64 MB
PHP Time Limit: 300
PHP Max Input Vars: 7000
SUHOSIN Installed: –
MySQL Version: 5.1.72
Max Upload Size: 64 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Remote Post: ✔
Remote Get: ✔
Database
WC Database Version: 2.4.10
:
woocommerce_api_keys: ✔
woocommerce_attribute_taxonomies: ✔
woocommerce_termmeta: ✔
woocommerce_downloadable_product_permissions: ✔
woocommerce_order_items: ✔
woocommerce_order_itemmeta: ✔
woocommerce_tax_rates: ✔
woocommerce_tax_rate_locations: ✔
Active Plugins (12)
Column Shortcodes: by Codepress – 0.6.6
Contact Form 7: by Takayuki Miyoshi – 4.3.1
Custom Sidebars: by WPMU DEV – 2.1.0.2
Email Log: by Sudar – 1.9.1
Bundle Rate Shipping Module for WooCommerce: by Eric Daams – 1.3.3
Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 2.2.6
Smart WYSIWYG Blocks Of Content: by Coen Jacobs – 0.6.1
Responsive WordPress Slider - Soliloquy Lite: by Thomas Griffin – 2.4.0.8
Sucuri Security - Auditing, Malware Scanner and Hardening: by Sucuri
Inc – 1.8.3
WooCommerce Product Archive Customiser: by jameskoster – 0.5.0
WooCommerce: by WooThemes – 2.4.10
Yoast SEO: by Team Yoast – 3.0.7
Settings
Force SSL: –
Currency: USD ($)
Currency Position: left_space
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2
API
API Enabled: ✔
API Version: 3.0.0
WC Pages
Shop Base: #715 - /buy-a-bag/
Cart: #659 - /cart/
Checkout: #451 - /checkout/
My Account: #452 - /my-account/
Taxonomies
Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)
Theme
Name: LaMonte
Version: 1.2
Author URL: http://www.templatesquare.com/
Child Theme: ✔
Parent Theme Name: Klasik
Parent Theme Version: 0.7.13
Parent Theme Author URL: http://www.klasikthemes.com/
WooCommerce Support: ✔
Templates
Overrides: klasik/woocommerce/archive-product.php
There is a bit of an odd issue with contact form 7 at the moment if you are using recaptcha plugins, if you use these turn them off for testing and then try a different plugin.
This is not exactly an answer, but somehow this problem has fixed itself. And the client is shutting down the site, so it is no longer an issue.

Resources