• Have installed php_everywhere on a WP 4.6.1 test site (hosted by Vidahost) and found it to work well for allowing me to run some php code in a page to extract data from a self created database.

    However, the live site is with another ISP (uk2.net) and there, whilst I can run some basic php, I find that when saving a page update with all the php code in, WP throws an error and tells me I’m not authorised to access /wp/wp-admin/post.php.
    Both WP versions and php_everywhere versions are the same. So given its just with the page save, anyone any idea where else would my problem be coming from?

    I’ve tried removing bits of the php code and can get it to save OK on the uk2 WP, until I add the following

    echo ‘<div style=”height:200; overflow-y:scroll;”>’;
    echo ‘</div>’;

    (of course I want some code in here really but even without it, the error appears – though I can’t see whats wrong)
    I’ve tried removing the plugin and re-installing
    I did wonder if it was database (MySQL) version.

    Are there any limits to what php_everywhere can handle.

    My original code on the live site (non-WP) – uses mysql_query whereas the working version on the test site is using mysqli_query, but for creeating the DB connection and opening I can use either in the new WP site.

    Any thoughts appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter teejaybee

    (@teejaybee)

    After further investigation it seems php_everywhere isn’t coping when I add HTML content in the php_everywhere options box(on 1 installation anyway) – on the other it works fine.

    Thread Starter teejaybee

    (@teejaybee)

    Couldn’t find the criteria causing this – it did work with some html code in the php but not other.

    I guess an option was to try to reinstall WP entirley but another post here suggested that still hadn’t fixed a similar issue.

    In the end I appear to have got round this by finding the relevant post_meta in the WP database and updating that directly. It now displays OK on the website.

    There is a difference in DB version 5.5.2/5.6.3 but its that later version that has the problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘permission error on /wp/wp-admin/post.php’ is closed to new replies.