MDD
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Schedule a post to be published at a future date: Does not workIn my case that was .htaccess rewrite rule. Before php 5.2.3 everything was working OK. After host upgrade timestamp posting did not work anymore.
I have rule to force users to main index page
RewriteBase / RewriteCond %{HTTP_HOST} ^domainname.com$ [OR] RewriteCond %{HTTP_HOST} ^www.domainame.com$ RewriteCond %{HTTP_REFERER} !^https://domainname.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://domainname.com $ [NC] RewriteCond %{HTTP_REFERER} !^https://www.domainname.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.domainname.com $ [NC] RewriteRule .*\.(html|php)$ https://domainname.com/index.phtml [R,NC]
After excluding from this rule my host IP (IP in example is 000.000.000.000) WordPress start publishing scheduled articles again.
RewriteBase / RewriteCond %{HTTP_HOST} ^domainname.com$ [OR] RewriteCond %{HTTP_HOST} ^www.domainame.com$ RewriteCond %{HTTP_REFERER} !^https://domainname.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://domainname.com $ [NC] RewriteCond %{HTTP_REFERER} !^https://www.domainname.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.domainname.com $ [NC] RewriteCond %{REMOTE_ADDR} !^000.000.000.000$ RewriteRule .*\.(html|php)$ https://domainname.com/index.htm [R,NC]
Something inside new php is different or my host makes some changes to server.
Anyway in my case problem resolved
Forum: Installing WordPress
In reply to: Moved server. No language loadTry this. Get your original gettext.php file, then find entry:
if ($magic == ($MAGIC1 & 0xFFFFFFFF)) { // to make sure it works for 64-bit platforms $this->BYTEORDER = 0; } elseif ($magic == ($MAGIC2 & 0xFFFFFFFF)) {
Replace by:
if ($magic == $MAGIC1) { $this->BYTEORDER = 0; } elseif ($magic == $MAGIC2) {
The solution was described there: https://wordpress.dk/forum/topic/19
It is working for me. WordPress 2.1.3 php 5.2.1
Forum: Fixing WordPress
In reply to: language server problem wordpress 2.1.2You can try to edit gettext.php file from wp-includes directory.
Find entry:
if ($magic == ($MAGIC1 & 0xFFFFFFFF)) { // to make sure it works for 64-bit platforms $this->BYTEORDER = 0; } elseif ($magic == ($MAGIC2 & 0xFFFFFFFF)) {
Replace by:
if ($magic == $MAGIC1) { $this->BYTEORDER = 0; } elseif ($magic == $MAGIC2) {
The solution was described there: https://wordpress.dk/forum/topic/19
It is working for me. WordPress 2.1.3 php 5.2.1
This was some problem with bug in php 5 corected by this file and then upgrade on server side to php 5.2.1.Forum: Fixing WordPress
In reply to: language not workingphp 5.0 bug was corrected be entry in gettext.php file (wp-includes). This correction does not work with php 5.2.1
You need to edit gettext.php file
Find entry:
if ($magic == ($MAGIC1 & 0xFFFFFFFF)) { // to make sure it works for 64-bit platforms $this->BYTEORDER = 0; } elseif ($magic == ($MAGIC2 & 0xFFFFFFFF)) {
Replace by:
if ($magic == $MAGIC1) { $this->BYTEORDER = 0; } elseif ($magic == $MAGIC2) {
The solution was described there: https://wordpress.dk/forum/topic/19
It is working for me. WordPress 2.1.3 php 5.2.1
Forum: Fixing WordPress
In reply to: Problem with localizationYes it is a bug in php 5.0. Was corrected be entry in gettext.php file (wp-includes). Thisc correction does not work with php 5.2.1
You need to edit gettext.php file
Find entry:
if ($magic == ($MAGIC1 & 0xFFFFFFFF)) { // to make sure it works for 64-bit platforms $this->BYTEORDER = 0; } elseif ($magic == ($MAGIC2 & 0xFFFFFFFF)) {
Replace by:
if ($magic == $MAGIC1) { $this->BYTEORDER = 0; } elseif ($magic == $MAGIC2) {
The solution was described there: https://wordpress.dk/forum/topic/19
It is working for me. WordPress 2.1.3 php 5.2.1