[SOLVED] hello! bug report it's in demo site also wondercms 3.2.0 latest
Posted: Sun Jan 09, 2022 2:58 am
dear community
good day!
i just installed WonderCMS 3.2.0 in my server and it looks fantastic!
i use the default theme and just installed
additionals-contents, hits-counter, simple-blog, simple-statistics, Cache thumbs, summernote-editor but i cant edit post in blog
i removed simple-statistics and tried again and no luck
i removed and reinstalled simple-blog again and same issue wont edit default post nor newly created one!
i can delete default and created posts.
no error in chrome console nether
i would be grateful if any one helped me here
here's the error message i received below from nginx 1.21.5 error log using php8.1-fpm running ubuntu 21.10
and simple blog is accepting new posts title only
php8.1-xml is a MUST for SimpleStatistics to not break you main website so you don't have to use ftp to remove the plugin manually as your admin backend won't be accessible (possible bug report)
even though after i got simple blog to only post default blog post but cant edit the content of any post i can't say the same for SimpleStatistics
it still showing error
las thing i saw in latest update change log Option to have a template for each page
but in doc/wiki i can't find any example for how to do so, can you please guide me through?
another issue i need help with, if i set
to intercept error pages and add my own custom
i can't access login page and it renders 404
but the rest of the site is working fine though
is there's any way around that so i can access admin URL and keep intercepting error pages to show my own customs?
update:
fastcgi_intercept_errors on;
i found a work around but i don't know the impleficiation of it, so please guide me
let's say my login url is
i logged in as admin
changed login url to
and created a page with this name
and edit it and put the following code from wcms login page
them i downloaded database.js
edited it and re instated login url to from
then i edited my nginx file and enabled error intercept on
an viola now i can login by url and redirect all errors to my custom error pages
but each time i need to change login url i will had to do it via database and change it in two locations (security section and pages section) it's not a big deal
but i feel wondercms should have defined login page as hidden page with it's own slug each time we change login url so it has a hard location or maybe something else idk. feel free to enlighten me.
maybe we can have middle ground here as i know you made it that way so search engine and bot's won't detect it but we already have hidden page with long random slug not linked in any part in site.
thank you!
best regards,
good day!
i just installed WonderCMS 3.2.0 in my server and it looks fantastic!
i use the default theme and just installed
additionals-contents, hits-counter, simple-blog, simple-statistics, Cache thumbs, summernote-editor but i cant edit post in blog
i removed simple-statistics and tried again and no luck
i removed and reinstalled simple-blog again and same issue wont edit default post nor newly created one!
i can delete default and created posts.
no error in chrome console nether
i would be grateful if any one helped me here
here's the error message i received below from nginx 1.21.5 error log using php8.1-fpm running ubuntu 21.10
and simple blog is accepting new posts title only
Code: Select all
2022/01/10 17:33:13 [error] 4710#4710: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "menu" in /*/nginx/html/index.php on line 1984" while reading response header from upstream, client: *, server: *, request: "POST /blog/hello-world HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "*", referrer: "*/blog/hello-world"
even though after i got simple blog to only post default blog post but cant edit the content of any post i can't say the same for SimpleStatistics
it still showing error
Code: Select all
2022/01/10 17:30:21 [error] 4710#4710: *31 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Attempt to assign property "contact-us" on null in /*/nginx/html/plugins/simple-statistics/class.SimpleStatistics.php:72
Stack trace:
#0 /*/nginx/html/plugins/simple-statistics/class.SimpleStatistics.php(122): SimpleStatistics->set()
#1 /*/nginx/html/index.php(1109): SimpleStatistics->collectData()
#2 /*/nginx/html/index.php(1484): Wcms->hook()
#3 /*/nginx/html/themes/sky/theme.php(81): Wcms->js()
#4 /*/nginx/html/index.php(1519): require_once('...')
#5 /*/nginx/html/index.php(182): Wcms->loadThemeAndFunctions()
#6 /*/nginx/html/index.php(16): Wcms->render()
#7 {main}
thrown in /*/nginx/html/plugins/simple-statistics/class.SimpleStatistics.php on line 72" while reading upstream, client: *, server: *, request: "GET /contact-us/ HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "*", referrer: "https://*/home/"
but in doc/wiki i can't find any example for how to do so, can you please guide me through?
another issue i need help with, if i set
Code: Select all
fastcgi_intercept_errors on;
i can't access login page and it renders 404
but the rest of the site is working fine though
is there's any way around that so i can access admin URL and keep intercepting error pages to show my own customs?
update:
fastcgi_intercept_errors on;
i found a work around but i don't know the impleficiation of it, so please guide me
let's say my login url is
Code: Select all
example.com/fhgsdk34587sdnfklsadgv34-325wdfas
changed login url to
Code: Select all
fhgsdk34587sdnfklsadgv34-325wdfas-1
Code: Select all
fhgsdk34587sdnfklsadgv34-325wdfas
Code: Select all
<style>.showUpdate{display: block !important}</style>
<div class="wUpdate" style="display:none;color:#ccc;left:0;top:0;width:100%;height:100%;position:fixed;text-align:center;padding-top:100px;background:rgba(51,51,51,.8);z-index:2448"><h2>Logging in and checking for updates</h2><p>This might take a minute, updates are checked once per week.</p></div>
<form action="https://example.com/fhgsdk34587sdnfklsadgv34-325wdfas" method="post">
<div class="winput-group text-center">
<h1>Login to your website</h1>
<input type="password" class="wform-control" id="password" name="password" placeholder="Password" autofocus="" data-enpassusermodified="yes"><br><br>
<span class="winput-group-btn">
<button type="submit" class="wbtn wbtn-info" onclick="document.getElementsByClassName('wUpdate')[0].classList.toggle('showUpdate'); localStorage.clear();">Login</button>
</span>
</div>
</form>
edited it and re instated login url to
Code: Select all
fhgsdk34587sdnfklsadgv34-325wdfas
Code: Select all
fhgsdk34587sdnfklsadgv34-325wdfas-1
an viola now i can login by url and redirect all errors to my custom error pages
but each time i need to change login url i will had to do it via database and change it in two locations (security section and pages section) it's not a big deal
but i feel wondercms should have defined login page as hidden page with it's own slug each time we change login url so it has a hard location or maybe something else idk. feel free to enlighten me.
maybe we can have middle ground here as i know you made it that way so search engine and bot's won't detect it but we already have hidden page with long random slug not linked in any part in site.
thank you!
best regards,