Jump to content

Bootstrapping pw to a smarty template based app.


digitex
 Share

Recommended Posts

Hi Ryan et al.

I'm still at it trying to work out the problems I detailed in http://processwire.com/talk/index.php/topic,490.0.html

Now I have a new one. I am trying to bootstrap pw into a booking system I found that uses the Smarty template system. They're html based templates so I expected they would be able to work with processwire since the smarty class can be configured to execute <?php ?> tags placed in the template files, which I did. I also managed to successfully include the pw index.php but I get an error. The error is a processwire error so I know it's "working" but I don't know if the problem is some conflict with the other app or just the way I'm using the pw API inside the smarty templates.

The bootstrap how to ( http://processwire.com/api/include/ ) is a little vague (to me) on the ins and outs of accessing the API, are there any other examples I could look at?

Has anyone encountered a conflict when bootstrapping pw into another script?

Link to comment
Share on other sites

I was just looking to find out if any conflicts have ever been reported but if details will help:

The error is: Unable to complete this request due to an error. Error has been logged.

The error log has nothing in it. I expect that's because ProcessWire is not handling the web request but for whatever reason there is no error logged.

The only code I've tried is directly from the page http://processwire.com/api/include/ just to see if I could get it to do anything.

The smarty-app is Easy Estate Rental.

Link to comment
Share on other sites

Make sure you are using a new version of PW.  Try turning on debug: /site/config.php - Find $config->debug = false; and change it to true. Hopefully we can get a better error message that way.

See if you get an error when you do nothing but include("index.php"); (whatever the path to it is)

Link to comment
Share on other sites

Make sure you are using a new version of PW.  Try turning on debug: /site/config.php - Find $config->debug = false; and change it to true. Hopefully we can get a better error message that way.

See if you get an error when you do nothing but include("index.php"); (whatever the path to it is)

I'll turn on debug and report back but I can answer your second question right now. Simply including the index.php works if you want to call it that. In other words, the booking system works like it should with no errors.

Link to comment
Share on other sites

OK. This is a mouthful. I turned on debug and reloaded the page. The volume of notices exceeds the 20000 character limit of the forum so I'll post in 3 sections. There's one fatal error which is probably the important one, at the end.

Notice: Undefined index: clanguage_id in /home/pinkster/public_html/availability/admin/setting.php on line 16

Notice: Undefined index: clanguage_id in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Undefined variable: load_ini in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Undefined variable: language in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Undefined variable: fields_string in /home/pinkster/public_html/availability/system_function_031.php on line 0

Notice: Use of undefined constant language_id - assumed 'language_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant language_name - assumed 'language_name' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant language_symbol - assumed 'language_symbol' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant language_directory - assumed 'language_directory' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Link to comment
Share on other sites

Continuing:

Notice: Undefined index: clanguage_id in /home/pinkster/public_html/availability/admin/setting.php on line 16

Notice: Undefined index: clanguage_id in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Undefined variable: load_ini in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Undefined variable: language in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Undefined variable: fields_string in /home/pinkster/public_html/availability/system_function_031.php on line 0

Notice: Use of undefined constant language_id - assumed 'language_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant language_name - assumed 'language_name' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant language_symbol - assumed 'language_symbol' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant language_directory - assumed 'language_directory' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_id - assumed 'email_id' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Notice: Use of undefined constant email_key - assumed 'email_key' in /home/pinkster/public_html/availability/system_function_initialize.php on line 0

Fatal error: Smarty error: [in index.html line 16]: syntax error: unrecognized tag 'echo' (Smarty_Compiler.class.php, line 583) in /home/pinkster/public_html/availability/libs/Smarty.class.php on line 1095

Smarty error: [in index.html line 16]: syntax error: unrecognized tag 'echo' (Smarty_Compiler.class.php, line 583)

This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged.

Link to comment
Share on other sites

It looks like that Smarty app is definitely not PHP-strict standards compliant. You may want to be a little cautious with that app as it looks like someone wasn't using much care in the code. None of those notices are going to be a deal killer, but they are a bit of a red flag. Once you turn off PW's debug mode, they should disappear. But PHP is showing them to you because PW is putting PHP in a 'display all errors' mode. Uninitialized variables can be a little dangerous in PHP. But the good news is that we're not seeing classname conflicts between that app and PW, or anything like that... so I think you'll be able to get them working together (fingers crossed). Based on the fatal error that you are getting, I would bet it's as simple as a missing <?php tag before an 'echo' statement?

Link to comment
Share on other sites

No it's correct. I wish it was that simple to fix.

Any php in the template causes a fatal error but when I removed all the php code I still got the notices but the page loaded. Smarty is configured to allow i.e. execute php tags in the templates so it should work but it doesn't.

Link to comment
Share on other sites

Try taking ProcessWire out of the equation for now and see if you can get any PHP tags to work in your Smarty templates. That might make it easier to troubleshoot why it's not accepting the PHP. Also make sure you are using full PHP tags rather than <? short tags ?> just in case they aren't supported by your server or Smarty. Is it possible that Smarty requires some specific syntax for breaking into PHP? My only other concern is if Smarty is handling PHP with eval() statements. That would probably create some problems. Still, it seems like it all might work once you can get Smarty to accept PHP?

Link to comment
Share on other sites

Got it.

The big problem, it turns out, is in the php tags. You can't use em. This was not in the manual or online help it was in a forum when I did a search for php tags in smarty templates.

Instead of <?php ?> you use {php} {/php}

Weird. But working.

Thanks again Ryan. As always. Hopefully I can make this thing work finally.

Link to comment
Share on other sites

Sounds good, let us know how it goes. I'm suspicious they are using eval() since they've changed the PHP tags (almost certain of it), so it may slow things down in PW a lot, but give it a try and let us know how it works.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...