We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Forbidden: You do not have permission to access this document - When attempting to save a Template -- RESOLVED

Development and Programming

lcallif's avatar
lcallif
25 posts
9 years ago
lcallif's avatar lcallif

EE Version 2.10.1, PHP 5.3.27 Neither have been updated since installed. And as much as I would LOVE to upgrade to EE v3.x, I cannot due to some of the Add-Ons not having been upgraded.

This appears to have something to do with ExpressionEngine’s query functionality. I uninstalled the Query Module and reinstalled it, but the same issue. I did have the host provider disable mod_security, but it did not make a difference.

Just started to receive this error about 2 hours ago. I have looked all over ExpressionEngine but cannot figure out what the issue is EXCEPT that when I use the following in PHP within the Template, it causes the above error:

$uploadTo = $this->EE->db->query( “SELECT server_path as url FROM ” . $prefix . “upload_prefs WHERE 1 = 1 and name = ‘ABC’ “);

Hmmm, it appears to be the same issue if I use the following:

{exp:query sql=”select Count(*) TheCnt from <?php echo $this->EE->db->dbprefix; ?>FrEd fred Where 1=1 and fred.ID = <?php echo $this->EE->session->userdata(‘member_id’); ?> and fred.CanDt is NULL” } {/exp:query} Mhhhhhh

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.