thefallguy
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: When testing the REST API, an unexpected result was returned:Thank you so much – it was #2 (AllowOverride All) in the DocumentRoot for the WordPress directory. I’d been pouring over the https config files for hours, comparing a known working system with my new one – but I was looking at the server configs…
Anyway, lets hope that this helps other people too!
Forum: Fixing WordPress
In reply to: When testing the REST API, an unexpected result was returned:Yes, I have tried each of the different Permalink options, with no effect. I’m beginning to wonder if my Apache setup is correct, although I can successfully access the website through the default and the subdomain.
This is my Apache config:
<IfModule mod_ssl.c> <VirtualHost *:443> DocumentRoot "/var/www/html" ServerName my-server.com ServerAlias *.my-server.com SSLEngine on # Other directives here Include /etc/letsencrypt/options-ssl-apache.conf SSLCertificateFile /etc/letsencrypt/live/my-server.com/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/my-server.com/privkey.pem </VirtualHost> </IfModule>Forum: Fixing WordPress
In reply to: When testing the REST API, an unexpected result was returned:Thanks for your reply. I checked everything (except #4) and looks OK. As this was a new m/c I decided to reinstall – but I still have the same problem! So, how do you check the REST API endpoint setup? It is built into WordPress, and I have checked the config as best I can. I don’t know where to look for what has gone wrong!
Forum: Plugins
In reply to: [WP Photo Album Plus] WPPA_MULTISITE_INDIVIDUAL already definedThanks. That worked. I should take more notice of the comments in wp-config.php. But, perhaps, you could be a bit more explicit in your instructions?
Thanks for your help.
Forum: Plugins
In reply to: [WP Photo Album Plus] WPPA_MULTISITE_INDIVIDUAL already definedp.s. my theory is confirmed as, although the setting is made in wp-config.php, I still see the error message (below) when trying to do album admin
Erro:
WP Photo ALbum Plus Error message This is a multi site installation. One of the following 3 lines must be entered in wp-config.php: define( 'WPPA_MULTISITE_INDIVIDUAL', true );// Multisite WP 3.5 or later with every site its own albums and photos define( 'WPPA_MULTISITE_BLOGSDIR', true );// Multisite prior to WP 3.5 with every site its own albums and photos define( 'WPPA_MULTISITE_GLOBAL', true );// Multisite with one common set of albums and photosForum: Plugins
In reply to: [WP Photo Album Plus] WPPA_MULTISITE_INDIVIDUAL already definedMakes no difference!
It looks like your code is run before wp-config.php, hence, it is not defined, so gets defined, and then wp-config.php runs and thus generates the multiple definition.
php –version
PHP 8.1.8 (cli) (built: Jul 8 2022 10:58:31) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.8, Copyright (c) Zend Technologies
with Zend OPcache v8.1.8, Copyright (c), by Zend TechnologiesI haven’t tried to see the behaviour, but (given my synopsis above), I doubt it will do what I want. I’ll try that next (in a couple of days – busy tomorrow!)
Forum: Plugins
In reply to: [WP Photo Album Plus] WPPA_MULTISITE_INDIVIDUAL already definedJacob
I think I found a coding error at line 80 in wppa.php: it just says
defined(‘WPPA_MULTISITE_INDIVIDUAL’) or define( ‘WPPA_MULTISITE_INDIVIDUAL’, false );
I would have expected it to look like the lines above…
Forum: Plugins
In reply to: [WP Photo Album Plus] WPPA_MULTISITE_INDIVIDUAL already definedJacob,
Thanks for getting back to me. I deleted the plugin and installed it again. Immediately after Activating the plugin, I get these messages
Warning: mkdir(): No such file or directory in /usr/local/var/www/wordpress/wp-content/plugins/wp-photo-album-plus/wppa-setup.php on line 533
Warning: chmod(): No such file or directory in /usr/local/var/www/wordpress/wp-content/plugins/wp-photo-album-plus/wppa-setup.php on line 535
Warning: Constant WPPA_MULTISITE_INDIVIDUAL already defined in /usr/local/var/www/wordpress/wp-config.php on line 108
It looks to me as if the Constant warning is a PHP error, implying that it is defined elsewhere… Just a theory
Forum: Plugins
In reply to: [Leaflet Map] leaflet-map extensionsThanks for the update – it’ll be great if you can remove the limitation…
I’ll work around it for the moment.
Forum: Plugins
In reply to: [Leaflet Map] leaflet-map extensions@hupe13 thanks for the plugin which I have installed and am using. I am trying to show [elevation] on two maps in the same post, but only one is appearing. Am I using it wrong, or is this a limitation?
Forum: Plugins
In reply to: [Leaflet Map] GPX file fails to loadOK, Another update.
It appears to be a browser problem. On a Mac, this map does does not display in Safari, but it DOES display in Firefox. Strangely, it displays correctly in Safari on an iPad. Go figure.
Forum: Plugins
In reply to: [Leaflet Map] GPX file fails to loadNo, that does not work either. An empty map is displayed (not where the track is), but no GPX track is displayed.
Looking in the log, I see this error
get — togeojson.js:15TypeError: null is not an object (evaluating ‘x.getElementsByTagName’)
get — togeojson.js:15
gpx — togeojson.js:302
(anonymous function) — leaflet-ajax-geojson.js:35Maybe there is a bug in leaflet?
Forum: Plugins
In reply to: [Leaflet Map] GPX file fails to loadThat was a typo on my part, to obscure my site. I am using the full https address and it is quoted.
It it something about the gpx file that is causing the problem, as I have many other gpx files that are rendered correctly.
Forum: Plugins
In reply to: [Leaflet Map] How to show multiple GPX on one mapOK, it is now working. I can’t work out what I did wrong. Thanks for your help and sorry for wasting your time.
Forum: Plugins
In reply to: [Leaflet Map] Trying to add a leaflet-gpxOK, I found the problem. I needed to add
Access-Control-Allow-Origin: *
to my site headers. Thanks for the hint.