• Resolved tinodo

    (@tinodo)


    I don’t know why but when I use normal ads inserted in the post, it shows error:

    $ai_code = unserialize (base64_decode (‘YTo0OntpOjA7czoyNTY6IjxkaXYgY2xhc3M9ImFmdGVycG9zdCIgPiAgICANCiAgPGltZyBzcmM9Ii93cC1jb250ZW50L3VwbG9hZHMvMjAxNy8wOC9saWVuLWhlLWRhdC1zYWNoLXRpbm9yZWFkaW5ncm9vbS5qcGciIGFsdD0iTGnDqm4gaOG7hyDEkeG6t3Qgc8OhY2ggdOG6oWkgVGlubyBSZWFkaW5nIFJvb20iIC8+DQogIDxhIGhyZWY9Ii9saWVuLWhlLyI+PGJ1dHRvbiBjbGFzcz0iYWZ0ZXJwb3N0LWJ1dHRvbiI+xJDhurd0IHPDoWNoPC9idXR0b24+PC9hPg0KPC9kaXY+DQoiO2k6MTtzOjI2MDoiDQo8ZGl2IGNsYXNzPSJhZnRlcnBvc3QiID4gICAgDQogIDxpbWcgc3JjPSIvd3AtY29udGVudC91cGxvYWRzLzIwMTcvMDgvbGllbi1oZS1kYXQtc2FjaC10aW5vcmVhZGluZ3Jvb20tMi5qcGciIGFsdD0iTGnDqm4gaOG7hyDEkeG6t3Qgc8OhY2ggdOG6oWkgVGlubyBSZWFkaW5nIFJvb20iIC8+DQogIDxhIGhyZWY9Ii9saWVuLWhlLyI+PGJ1dHRvbiBjbGFzcz0iYWZ0ZXJwb3N0LWJ1dHRvbiI+xJDhurd0IHPDoWNoPC9idXR0b24+PC9hPg0KPC9kaXY+DQoiO2k6MjtzOjI2MDoiDQo8ZGl2IGNsYXNzPSJhZnRlcnBvc3QiID4gICAgDQogIDxpbWcgc3JjPSIvd3AtY29udGVudC91cGxvYWRzLzIwMTcvMDgvbGllbi1oZS1kYXQtc2FjaC10aW5vcmVhZGluZ3Jvb20tMy5qcGciIGFsdD0iTGnDqm4gaOG7hyDEkeG6t3Qgc8OhY2ggdOG6oWkgVGlubyBSZWFkaW5nIFJvb20iIC8+DQogIDxhIGhyZWY9Ii9saWVuLWhlLyI+PGJ1dHRvbiBjbGFzcz0iYWZ0ZXJwb3N0LWJ1dHRvbiI+xJDhurd0IHPDoWNoPC9idXR0b24+PC9hPg0KPC9kaXY+DQoiO2k6MztzOjI1ODoiDQo8ZGl2IGNsYXNzPSJhZnRlcnBvc3QiID4gICAgDQogIDxpbWcgc3JjPSIvd3AtY29udGVudC91cGxvYWRzLzIwMTcvMDgvbGllbi1oZS1kYXQtc2FjaC10aW5vcmVhZGluZ3Jvb20tNC5qcGciIGFsdD0iTGnDqm4gaOG7hyDEkeG6t3Qgc8OhY2ggdOG6oWkgVGlubyBSZWFkaW5nIFJvb20iIC8+DQogIDxhIGhyZWY9Ii9saWVuLWhlLyI+PGJ1dHRvbiBjbGFzcz0iYWZ0ZXJwb3N0LWJ1dHRvbiI+xJDhurd0IHPDoWNoPC9idXR0b24+PC9hPg0KPC9kaXY+Ijt9’)); $ai_index = mt_rand (1, count ($ai_code)); $ai_code = $ai_code [$ai_index – 1]; $ai_enabled = true; if ($ai_enabled) echo str_replace (‘[#AI_DATA#]’, base64_encode (“[2,$ai_index]”), unserialize (base64_decode (‘czo4NDoiPGRpdiBjbGFzcz0nY29kZS1ibG9jayBjb2RlLWJsb2NrLTInIHN0eWxlPSdtYXJnaW46IDhweCBhdXRvOyB0ZXh0LWFsaWduOiBjZW50ZXI7Jz4KIjs=’))), $ai_code, unserialize (base64_decode (‘czo3OiI8L2Rpdj4KIjs=’));

    and the normal code is:
    <div class=”afterpost” >
    <img src=”URL1″ alt=””
    <button class=”afterpost-button”>??t sách</button>
    </div>
    |rotate|
    <div class=”afterpost” >
    <img src=”URL2″ alt=””
    <button class=”afterpost-button”>??t sách</button>
    </div>
    |rotate|
    <div class=”afterpost” >
    <img src=”URL3″ alt=””
    <button class=”afterpost-button”>??t sách</button>
    </div>
    |rotate|
    <div class=”afterpost” >
    <img src=”URL4″ alt=””
    <button class=”afterpost-button”>??t sách</button>
    </div>

    That’s it, it’s used to work, but suddenly one day it doesn’t anymore. the only thing I changed this week was the nameserver moving the domain to new host and that’s it. I don’t if this error specifically represents any things else. Please help me!
    The “URL1234” and close tags above are just an example since this frame is html supported so it’d turn crazy after submitting. I put actual image urls and decent close tags all in those so don’t worry.

    • This topic was modified 7 years, 7 months ago by tinodo.
    • This topic was modified 7 years, 7 months ago by tinodo.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Spacetime

    (@spacetime)

    Sorry for late reply – I got notice of this thread only now – it seems some issue with this forum.

    This looks like the code that should be executed by the W3 Total Cache plugin when you set Dynamic blocks to Server side using W3 Total Cache.

    Make sure W3 Total Cache plugin is enabled / the cache is flushed.

Viewing 1 replies (of 1 total)
  • The topic ‘$ai_code error’ is closed to new replies.