We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26409
    • 1 Posts
    Is there any way to have MODx not do PHP parsing on certain pages or directories?

    I am using PayPal SDKs to do credit card processing for a site I am working on. I have tested the SDKs on the site web server so I know that they work. The problem is that MODx gives a parsing error.

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error: 	Missing argument 1 for apiprofile()	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	C:\www\iaia\php-sdk\lib\PayPal\Profile\API.php	 
      Line: 	88	 
      Line 88 source: 	function APIProfile($id, &$handler) 	 
     
    Parser timing
      MySQL: 	0.0625 s s	(29 Requests)
      PHP: 	0.1868 s s	 
      Total: 	0.2493 s s
    


    I would rather not modify PayPal’s SDKs if I can help it.
      • 727
      • 502 Posts
      How are you integrating the PayPal code into MODx? Are you using snippets? Can you give an example?

      Andy