# Installation of the WordPress Connector
# Requirements
To use the 4App WordPress Connector, make sure you have
- an installed WordPress server version 5.7 or higher
- an installed plugin for Basic WordPress Authentication
The 4App WordPress Connector is supported starting from DAM version 3.8.
# Installation of the 4App
The WordPress Connector is available as a separate 4App (4allportal-wordpress-connector) and can be downloaded and installed via the app management in the administration area. After installation, activate the 4App and restart the system.
You now find the new admin snap-in DAM/WordPress Connector
in the administration area to configure as well as the new panel WordPress Connector
in each asset's detail view of the DAM.
# Installation of the WordPress Authentication plugin
To authenticate the 4App WordPress Connector with WordPress (required), you need to install a plugin on your WordPress server.
Find the Basic Authentication plugin here.
Choose
Download ZIP
When the download is complete (it comes with a README for details), upload the plugin via the WordPress frontend:
Plugins
/Add New
/Upload Plugin
When the upload is complete, the plugin can be activated via the WordPress frontend:
Plugins
/JSON Basic Authentication
/Activate
# Settings for WordPress
After installation of your WordPress server, change the permalinks settings like this:
Settings
/ Permalinks
/ choose anything but "plain"
# Troubleshooting
The WordPress Rest-API sometimes takes too long to handle a request. This can cause problems in both WordPress and 4ALLPORTAL.
# Problem: Updating media files
WordPress times out a request and does not send a response back to the 4ALLPORTAL. The response would contain the media id to be saved in the 4ALLPORTAL. The media id is required for updating or deleting media files.
If the media-creation response has not been sent back from WordPress and you would try to update a media file in the 4ALLPORTAL, the file would not update, and an error would show that the media file couldn't be found in WordPress.
# Solution
First, make sure your media files already uploaded and imported completely into the DAM before sharing or updating them to your WordPress server.
Second, editing the following files on your WordPress server may be helpful:
Edit the following parameters in the
php.ini
file (found under your installation path/var/www/html/.php.ini
or under/etc/php.ini
) to:upload_max_filesize = 100M post_max_size = 105M memory_limit = 256M max_file_uploads = 200 max_execution_time = 600 file_uploads = On
Note: Please make sure
post_max_size
is always bigger thanupload_max_filesize
.Add the following to the
.htaccess
file (found under your installation path/var/www/html/.htaccess
):php_value upload_max_filesize 100M php_value post_max_size 105M php_value max_execution_time 600 php_value max_input_time 600 # END WordPress
Add the following to the
wp-config.php
file (found under your installation path/var/www/html/wp-config.php
):@ini_set( 'upload_max_size' , '100M' ); @ini_set( 'post_max_size', '105M'); @ini_set( 'memory_limit', '256M' );
Make sure to restart your WordPress server after these configurations.