Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • In 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

    Try 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

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

    php 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

    Yes 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

Viewing 5 replies - 1 through 5 (of 5 total)