Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter thefallguy

    (@thefallguy)

    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!

    Thread Starter thefallguy

    (@thefallguy)

    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>
    
    Thread Starter thefallguy

    (@thefallguy)

    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!

    Thread Starter thefallguy

    (@thefallguy)

    Thanks. 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.

    Thread Starter thefallguy

    (@thefallguy)

    p.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 photos
    Thread Starter thefallguy

    (@thefallguy)

    Makes 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 Technologies

    I 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!)

    Thread Starter thefallguy

    (@thefallguy)

    Jacob

    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…

    Thread Starter thefallguy

    (@thefallguy)

    Jacob,

    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

    thefallguy

    (@thefallguy)

    Thanks for the update – it’ll be great if you can remove the limitation…

    I’ll work around it for the moment.

    thefallguy

    (@thefallguy)

    @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?

    Thread Starter thefallguy

    (@thefallguy)

    OK, 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.

    Thread Starter thefallguy

    (@thefallguy)

    No, 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:35

    Maybe there is a bug in leaflet?

    Thread Starter thefallguy

    (@thefallguy)

    That 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.

    Thread Starter thefallguy

    (@thefallguy)

    OK, it is now working. I can’t work out what I did wrong. Thanks for your help and sorry for wasting your time.

    Thread Starter thefallguy

    (@thefallguy)

    OK, I found the problem. I needed to add
    Access-Control-Allow-Origin: *
    to my site headers. Thanks for the hint.

Viewing 15 replies - 1 through 15 (of 20 total)