Php An Error Occurred While Processing This Directive
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring
An Error Occurred While Processing This Directive Wordpress
developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask an error occurred while processing this directive bluehost Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join an error occurred while processing this directive codeigniter them; it only takes a minute: Sign up PHP error [an error occurred while processing this directive] up vote 2 down vote favorite 1 I have a php script that searches a database based on some filters and echoes
An Error Occurred While Processing This Directive Godaddy
back the number of results. I request this file with ajax, to be able to display the number of results the search returns right after the user changes some selects. This works just fine on a local host, but it doesn't on a production server, and since I had no idea what was wrong (no visible errors) I called the php script directly, to see whether it has any errors or not. what I get is [an error occurred while processing this directive] The php includes 2 files, the database connection info, and some initialization stuff. I used relative path, and both files are at the correct location, with correct permissions. I checked the error log, and since there's nothing in there. I googled this, but nothing concrete came up, and ATM I have no idea how to get around this. Please advise! php ajax share|improve this question asked May 27 '11 at 13:22 adamors 2,28221939 add a comment| 5 Answers 5 active oldest votes up vote 0 down vote accepted Step 1: Enable Error Printing in PHP In order to find out the bug, enable errors for your PHP. From http://www.bradino.com/php/error-reporting/: ini_set('display_errors',1); error_reporting(E_ALL|E_STRICT); If that doesn't work, edit php.ini (see http://php.net/manual/en/errorfunc.configuration.php) and set: display_errors=1 If you don't know where your php.ini is located use: And locate "configuration file (php.ini) path". For visual instructions, see: http://www.php-scripts.com/20050909/8/ Step 2: Debug your Apache / Web Server Log If you still don't get any errors in PHP, the problem has to be with web server: If you are using Apache, locate access.log and error.log and see if they contain messages related to this issue. Hint: tail -f xxx.log allows you to track changes in a log in real-time (very useful for debugging). share|improve this answer edited May 27 '11 at 13:38 answered May 27
Community Blog Create your store Français Español Deutsch Italiano Portuguese Polish Dutch English Features Templates Store Builder Shopping Cart Mobile eMarketing International Integrations Compare Learn Getting Started Themes Modules Showcase Documentation Training Support an error occurred while processing this directive magento FAQ Community Blog Download Modules Themes Forum English Français Español Deutsch Italiano Portuguese
An Error Occurred While Processing This Directive Apache
Polish Dutch Sign in Jump to content Forum → International community (English) → Ecommerce x PrestaShop [ARCHIVE an error occurred while processing this directive htaccess BOARD] Search Search section: This topic Forums Members Help Javascript Disabled Detected You currently have javascript disabled. Several functions may not work. Please re-enable javascript to access full functionality. [SOLVED] an http://stackoverflow.com/questions/6152832/php-error-an-error-occurred-while-processing-this-directive error occurred while processing this directive Started by blackkaviar, Oct 07 2014 12:13 PM, 5 replies to this topic error solved Please log in to reply #1 blackkaviar Posted 07 October 2014 - 12:13 PM blackkaviar PrestaShop Newbie Members 3 Active Posts NOTE: Problem solved by replacing the php.ini with the server-wide php.ini. I just moved my site from the old hosting to https://www.prestashop.com/forums/topic/367147-solved-an-error-occurred-while-processing-this-directive/ the new VPS running on CentOS 6.5 with Cpanel/WHM. I have few other sites which already moved and running well. But this one won't open with an error message [an error occurred while processing this directive]. When I checked the error log, I see a bunch of the following messages: exec used but not allowed in /home/bursasp/public_html/500.shtml I've browsed around for solutions, but found nothing that really answered my problem. I noticed there's this postbut I've checked my folders and file permissions and everything looks fine. Any help would be really appreciated. Thanks. Edited by blackkaviar, 08 October 2014 - 05:08 AM. Back to top #2 El Patron Posted 07 October 2014 - 12:28 PM El Patron PrestaShop Legend Members 13815 Active Posts how did you put the files to new server? Get Fast Free Affordablefor any of your PrestaShop needs. We use project management system so things are done fast and exactly how you want them. You can also reach out to me on Skype: PrestaHeroes Back to top #3 blackkaviar Posted 07 October 2014 - 12:36 PM blackkaviar PrestaShop Newbie Members 3 Active Posts Hi El Patron, thanks
a couple of reason.1. The error is generated by the Apache server. The SSI module in the Apache is activated and you have into your page something that resemble to https://www.davidtan.org/an-error-occurred-while-processing-this-directive/ a directive for the SSI. In this situation the Apache will try to interpret that part of your page but fails with the reported error message. Read more at http://httpd.apache.org/docs/2.0/howto/ssi.html#config2. In my personal experience, you are trying to send an email using your own scripting language (like php mail function), and there is a default timeout set in php.ini. Usually, when you have a huge an error amount of emails to send (for example, sending emails to all forum members), you may get this message since the timeout has been reached and no more emails will be sent. It may also be due to the fact that your webhost has set a limit on how many emails you are able to send in an hour. In most cases, you should seek an error occurred help from your webhost as they know more about what to do. Let them know what you were trying to do when you got this error message. I've had luck with my webhost and they were able to increase my initially 50 emails per hour to 500 emails per hour. Filed Under: Coding & Development 4 CommentsRelated Posts Image Processing with MathematicaFixing Internal Server 500 ErrorPerl MP3::Tag Module Software Error Writing of ID3v2.4 is not fully supported (prohibited now via `write_v24′) SolutionWordPress Autoptimize Plugin: Require Not Allowed Here Error Message SolutionPHP + SimpleXML: Creating XML File Using simplexml_load_string ErrorWordPress 2.3.2 Released Comments a_hack saysFebruary 26, 2010 at 2:21 amit's very likely a permission problem: http://www.bluehostforum.com/showthread.php?t=11101Reply tony saysMay 6, 2010 at 3:27 pmi contacted my web-host and they showed me what went wrong. My folder permissions were somehow set to 700, this gives me that error, i uploaded a folder-permissions-fix that set all my folders to 755 and files to 644 and it worked!Reply Mark saysMay 14, 2010 at 10:14 amThank you. Had the error "error occurred while processing this directive" when working with a php grid control (PHPGrid). Setting all permissions