Blocs to PulseCMS Blog Detail Page

The Test-Website is dsi-softworks.de. Maybe it’s because I’m using nginx instead of apache. No problem, according to PulseCMS.

Under chrome I get the error message http: 404. Website not found. Means probably on error with nginx out.

1 Like

Nginx shouldn’t be a problem as it looks to have installed correctly @codiergott?

Have you also setup the htaccess file?

For nginx you might need to convert the htaccess (which is for Apache) as mentioned here:

Hello,
Thanks for your help. I did not pay attention to the htaccess, because nginx does not do that either.
My nginx config looks like this:

server {
 listen 80;
 listen [::]:80;
 server_name dsi-softworks.de;
 return 301 https://$server_name$request_uri;
 root /***/******/****;
}

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;   

client_max_body_size 1M;

## Begin - Server Info
root /***/******/****;
server_name dsi-softworks.de;

if ($host = 'www.dsi-softworks.de' ) {
      rewrite  ^/(.*)$  https://dsi-softworks.de/$1  permanent;
}

server_tokens off;
ssl_certificate /*******/fullchain.pem;
ssl_certificate_key /*******/privkey.pem;

ssl_dhparam /******t/dh4096.pem;


ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

# Anweisung PulseCMS - START
location / { 
    index index.php;
    rewrite ^/blog-page-([^-]*)$ /?page=$1&p=blog break;
    rewrite ^/blog-([^-]*)+? /?d=$1&p=blog break;
    if (!-e $request_filename){
        rewrite ^(.*)$ /index.php?p=$1 last;
    }
}
# Anweisung PulseCMS - ENDE

# PHP Anweisung - START
location ~ \.php$ {
    # Choose either a socket or TCP/IP address
    fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_index index.php;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
}
# PHP Anweisung - ENDE

# Security - START
location ~ /(LICENSE\.txt|composer\.lock|composer\.json|nginx\.conf|web\.config|htaccess\.txt|\.htaccess)
{ 
    return 403;
}

if ($request_method !~ ^(GET|HEAD|POST)$)
{ 
    return 444;
}
    
    add_header X-Frame-Options "SAMEORIGIN";                        # EINBINDEN DER WEBSITE IN EIN IFRAME VERBIETEN
    add_header x-xss-protection "1; mode=block" always;             # Cross-Site-Scripting (XSS)-Filter aktivieren
    add_header X-Content-Type-Options "nosniff" always;             # Absicherung MSIE
    
    ## Security - ENDE
}

Can you possibly help me to configure it correctly?

So adding this in the server section didn’t work?

location / { index index.php;

rewrite ^/blog-page-([^-]*)$ /?page=$1&p=blog break; rewrite ^/blog-([^-]*)+? /?d=$1&p=blog break;

if (!-e $request_filename){ rewrite ^(.*)$ /index.php?p=$1 last; } }

Are you getting any errors in the Pulse logs? (Admin > settings > extend > logs)

That does not work. I can not get to the Blog Detail Page, Error 404. The Website is dsi-softworks.de -> Techwiki

Here is the LOG:
[04-Feb-2019 16:34:47 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 16:34:47 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:15:24 Europe/Berlin] PHP Fatal error: Uncaught LogicException: An invariant has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/logic/user_agent.php(114): pulsecore\invariant(false)
#1 /var/www/mrmacintosh.de/admin/inc/tracker.php(56): pulsecore\logic\UserAgent->process(Array)
#2 /var/www/mrmacintosh.de/admin/inc/tracker.php(161): admin_plugin_tracker(Array, Array)
#3 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:15:25 Europe/Berlin] PHP Fatal error: Uncaught LogicException: An invariant has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/logic/user_agent.php(114): pulsecore\invariant(false)
#1 /var/www/mrmacintosh.de/admin/inc/tracker.php(56): pulsecore\logic\UserAgent->process(Array)
#2 /var/www/mrmacintosh.de/admin/inc/tracker.php(161): admin_plugin_tracker(Array, Array)
#3 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:15:41 Europe/Berlin] PHP Fatal error: Uncaught LogicException: An invariant has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/logic/user_agent.php(114): pulsecore\invariant(false)
#1 /var/www/mrmacintosh.de/admin/inc/tracker.php(56): pulsecore\logic\UserAgent->process(Array)
#2 /var/www/mrmacintosh.de/admin/inc/tracker.php(161): admin_plugin_tracker(Array, Array)
#3 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:23:06 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:23:06 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:23:10 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:23:10 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:23:13 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:23:13 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:23:20 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:23:20 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:23:20 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:23:20 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:23:24 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:23:24 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:31:46 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:31:46 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:32:06 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:32:06 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:58:09 Europe/Berlin] PHP Fatal error: Uncaught LogicException: An invariant has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/logic/user_agent.php(114): pulsecore\invariant(false)
#1 /var/www/mrmacintosh.de/admin/inc/tracker.php(56): pulsecore\logic\UserAgent->process(Array)
#2 /var/www/mrmacintosh.de/admin/inc/tracker.php(161): admin_plugin_tracker(Array, Array)
#3 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Fatal error: Uncaught LogicException: An invariant has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/logic/user_agent.php(114): pulsecore\invariant(false)
#1 /var/www/mrmacintosh.de/admin/inc/tracker.php(56): pulsecore\logic\UserAgent->process(Array)
#2 /var/www/mrmacintosh.de/admin/inc/tracker.php(161): admin_plugin_tracker(Array, Array)
#3 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Fatal error: Uncaught LogicException: An invariant has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/logic/user_agent.php(114): pulsecore\invariant(false)
#1 /var/www/mrmacintosh.de/admin/inc/tracker.php(56): pulsecore\logic\UserAgent->process(Array)
#2 /var/www/mrmacintosh.de/admin/inc/tracker.php(161): admin_plugin_tracker(Array, Array)
#3 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:58:51 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:58:54 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:58:54 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)
#3 /var/www/mrmacintosh.de/index.php(200): pulsecore\store\page\Item->load(‘content/pages/4…’)
#4 {main}
thrown in /var/www/mrmacintosh.de/pulsecore/dbc.php on line 12
[04-Feb-2019 20:58:54 Europe/Berlin] PHP Warning: file_get_contents(content/pages/404.txt): failed to open stream: No such file or directory in /var/www/mrmacintosh.de/pulsecore/store/page/item.php on line 173
[04-Feb-2019 20:58:54 Europe/Berlin] PHP Fatal error: Uncaught LogicException: A pre-condition has failed in /var/www/mrmacintosh.de/pulsecore/dbc.php:12
Stack trace:
#0 /var/www/mrmacintosh.de/pulsecore/dbc.php(44): pulsecore\invariant(false, ‘A pre-condition…’)
#1 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(270): pulsecore\pre_condition(false)
#2 /var/www/mrmacintosh.de/pulsecore/store/page/item.php(175): pulsecore\store\page\Item->unpickle(false)

A small note.
Your blog page opens at:
Https://dsi-softworks.de/techwiki”.
Blog name “Testeintrag” is at this address:
https://dsi-softworks.de/blog-20190203221433000-Testeintrag”.
This is not the correct blog prefix.
It is probably necessary to adjust the “.htaccess”.
Blog “Testeintrag” is a copy of another blog.
Administrator settings:Blog URL prefix = “techwiki”.
– Blog URL:“Https://dsi-softworks.de/techwiki”.

1 Like

Thanks, Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks!!

It’s worked.

Best regards

1 Like

Great work @IvaRo ! And nice spotting :grinning:


Also worth noting for Nginx users, the config mentioned above should work for the general case.

It would need tweaking for installations in sub directories.
It also needs the rules for tagged blog posts and the endpoint/dropzone handlers:

rewrite ^tagged\/(.*)$ /?p=blog&blog_tag_name=$1 break;
rewrite ^endpoint\/(.*)$ /end_point.php?item=$1 break;
rewrite ^dropzone_upload_handler.php$ /dropzone_upload_handler.php break;

Glad it is working! :slight_smile:

Thanks for the additional tip. Somehow I make a mistake. I have changed it now to the following:

location /
        {
                index index.php;
                rewrite ^/techwiki-page-([^-]*)$ /?page=$1&p=techwiki break;
                rewrite ^/techwiki-([^-]*)+? /?d=$1&p=techwiki break;
                if (!-e $request_filename){
                        rewrite ^(.*)$ /index.php?p=$1 last;
                }
                rewrite ^tagged\/(.*)$ /?p=techwiki&techwiki_tag_name=$1 break;
                rewrite ^endpoint\/(.*)$ /end_point.php?item=$1 break;
                rewrite ^dropzone_upload_handler.php$ /dropzone_upload_handler.php break;
        }

It does not work !!!

Well - how about undo that and go back to how it was here as you had it working :slight_smile:

And start with that!

Hello,

The Blog works. I was really happy. Now, however, I had to determine, on her answer, that the tagged do not work. I’m getting a blank page again.

I have the original code:

rewrite ^tagged\/(.*)$ /?p=blog&blog_tag_name=$1 break;

As adapted as the blog name is, “techwiki”.

rewrite ^tagged\/(.*)$ /?p=techwiki&techwiki_tag_name=$1 break;

But it does not work !! Do I have to specify something else there?

Would be grateful again for help.

David

1 Like

Hi David,

I think the nginx config for a sub directory would be closer to:

location /techwiki/
{
index index.php;
rewrite ^/fetchwiki/blog-page-([^-]*)$ /fetchwiki/?page=$1&p=blog break;
rewrite ^/fetchwiki/blog-([^-]*)+? /fetchwiki/?d=$1&p=blog break;
if (!-e $request_filename){
rewrite ^fetchwiki/(.*)$ /fetchwiki/index.php?p=$1 last;
}
rewrite ^/fetchwiki/tagged\/(.*)$ /fetchwiki/?p=blog&blog_tag_name=$1 break;
rewrite ^/fetchwiki/endpoint\/(.*)$ /fetchwiki/end_point.php?item=$1 break;
rewrite ^/fetchwiki/dropzone_upload_handler.php$ /fetchwiki/dropzone_upload_handler.php break;
}

I don’t think nginx has something like RewriteBase so fetchwiki is all over the place.

NB this is untested !

Thanks for the tip. I tried it that way. Have it still corrected, without success. It just does not work.
I hope I do not bother. I have a few little questions that I can not find in the Pulse 5 manual.
Which page affect the redirects:

rewrite ^/techwiki/techwiki-page-([^-]*)$ /?page=$1&p=techwiki break;
&
rewrite ^/techwiki/techwiki-([^-]*)+? /?d=$1&p=techwiki break;

By clicking on the tag, he always directs me to the following website:

https://dsi-softworks.de/tagged/nginx

And then get an error 404 again.

We have tested this on an nginx install. This is the config we used:

location /techwiki/
{
index index.php;
rewrite ^/techwiki/blog-page-([^-]*)$ /techwiki/?page=$1&p=blog break;
rewrite ^/techwiki/blog-([^-]*)+? /techwiki/?d=$1&p=blog break;

if (!-e $request_filename){
rewrite ^techwiki/(.*)$ /techwiki/index.php?p=$1 last;
}

rewrite ^/techwiki/tagged\/(.*)$ /techwiki/?p=blog&blog_tag_name=$1 break;
rewrite ^/techwiki/endpoint\/(.*)$ /techwiki/end_point.php?item=$1 break;
rewrite ^/techwiki/dropzone_upload_handler.php$ /techwiki/dropzone_upload_handler.php break;
}

So it should work.

One thing to check is that:

  • the path is set to /techwiki in the config.php and in pulsecore/storage/config.json
  • Another thing to check is if the installer raised any errors.

Hello Pulse Team,

it does not work! Techwiki is not a subdirectory on the server. PulseCMS is located in the root folder of the URL.

Because I get nothing more open except the start page.

I have now rebuilt PulseCMS and changed the template with blogs on blog. The nginx config may be adjusted. Blog works, that’s it already. But Tagged I always get a 404 error.

location /
        {
                index index.php;
                rewrite ^/blog-page-([^-]*)$ /?page=$1&p=blog break;
                rewrite ^/blog-([^-]*)+? /?d=$1&p=blog break;
                if (!-e $request_filename){
                        rewrite ^(.*)$ /index.php?p=$1 last;
                }
                rewrite ^tagged\/(.*)$ /?p=blog&blog_tag_name=$1 break;
                rewrite ^endpoint\/(.*)$ /end_point.php?item=$1 break;
                rewrite ^dropzone_upload_handler.php$ /dropzone_upload_handler.php break;
        }

Dear PulseCMS Support Team,

Unfortunately I do not get any answers or solutions to my questions. Would I like to know how to proceed now?

Sorry we didn’t answer your question immediately @codiergott but please understand:

  • it was a weekend when you last posted (and is Sunday here now)
  • Couple days is reasonable reply time
  • Server setup is your own responsibility. We are not a hosting company and recommend shared hosting anyway as stated here
  • Of course it works on Nginx or custom servers but you have to ensure that your server is compatible - we cannot do server installation or maintenance. Anyone using a VPS or other should have enough knowledge to set that up themselves.

That said we can “suggest” some things, but can’t say exactly as we don’t know the make up and config of your server box.

It might be a rule ordering bug in the configs.

The last thing to try is:

location /
{
index index.php;

rewrite ^/blog-page-([^-]*)$ /?page=$1&p=blog break;

rewrite ^/blog-([^-]*)+? /?d=$1&p=blog break;

rewrite ^tagged\/(.*)$ /?p=blog&blog_tag_name=$1 break;
rewrite ^endpoint\/(.*)$ /end_point.php?item=$1 break;
rewrite ^dropzone_upload_handler.php$ /dropzone_upload_handler.php break;

if (!-e $request_filename){
rewrite ^(.*)$ /index.php?p=$1 last;
}

}

In case the order of the rules matters.

Please consult with your system admin to determine what the cause might be

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.