Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running api db test #2

Closed
arejay73 opened this issue Jan 15, 2014 · 4 comments
Closed

Error when running api db test #2

arejay73 opened this issue Jan 15, 2014 · 4 comments

Comments

@arejay73
Copy link

When I comment out line number 170, the script work fine and validates.

Here is my error message:
Slim Application Error
The application could not run because of the following error:

Details

Code: 8
Message: Undefined variable: app_id
File: /var/www/pubapi/index.php
Line: 170
Trace
#0 /var/www/pubapi/index.php(170): Slim\Slim::handleErrors(8, 'Undefined varia...', '/var/www/pubapi...', 170, Array)
#1 [internal function]: {closure}()
#2 /var/www/pubapi/Slim/Router.php(200): call_user_func_array(Object(Closure), Array)
#3 /var/www/pubapi/Slim/Slim.php(1218): Slim\Router->dispatch(Object(Slim\Route))
#4 /var/www/pubapi/Slim/Middleware/Flash.php(86): Slim\Slim->call()
#5 /var/www/pubapi/Slim/Middleware/MethodOverride.php(94): Slim\Middleware\Flash->call()
#6 /var/www/pubapi/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#7 /var/www/pubapi/Slim/Slim.php(1167): Slim\Middleware\PrettyExceptions->call()
#8 /var/www/pubapi/index.php(884): Slim\Slim->run()
#9 {main}

@nin9creative
Copy link
Contributor

I guess I don't understand the question.

@arejay73
Copy link
Author

When going through the Baker Cloud Console API install on step 3. I get the error message mentioned above.
here is the link to documentation, http://docs.bakerframework.com/bakercloudce/#!/api_install

When I click on "Check DB Connectivity", I get the error.

Upon inspection of the file, /var/www/pubapi/index.php at line 170 there is a function call, logAnalyticMetric(AnalyticType::ApiInteraction,1,NULL,$app_id,$user_id);

This is where the error happens. If I comment out line 170, the error goes away and I am able to proceed to step 4 of the install doc.

Is this function important? Can you tell me why this line of code does not function?

@nin9creative
Copy link
Contributor

You can delete it...

There was a bug fix submitted for this in the master.

I need to update the 1.1 .zip file with the new version...

2ea485e


From: arejay73 notifications@github.com
To: bakerframework/bakercloud-ce-api bakercloud-ce-api@noreply.github.com
Cc: Andrew andrew@nin9creative.com
Sent: Friday, January 17, 2014 11:53 AM
Subject: Re: [bakercloud-ce-api] Error when running api db test (#2)

When going through the Baker Cloud Console API install on step 3. I get the error message mentioned above.
here is the link to documentation, http://docs.bakerframework.com/bakercloudce/#!/api_install
When I click on "Check DB Connectivity", I get the error.
Upon inspection of the file, /var/www/pubapi/index.php at line 170 there is a function call, logAnalyticMetric(AnalyticType::ApiInteraction,1,NULL,$app_id,$user_id);
This is where the error happens. If I comment out line 170, the error goes away and I am able to proceed to step 4 of the install doc.
Is this function important? Can you tell me why this line of code does not function?

Reply to this email directly or view it on GitHub.

@nin9creative
Copy link
Contributor

Fixed in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants