I put my Google Analytics tracking code in my layout file, this of course does not embed it in my error pages (404.html, 500.html)
How can I properly track error pages without repeating the code? Are rack-based Google Analytics plugins the way to go? Or is there another preferred way?
I had used this gem in the past https://github.com/leehambley/rack-google-analytics
Hmm. I've got the script in my footer and it seems to track 404 pages. Under content->content dill down:
1.
/content/
17,819 16,542 00:04:56 92.67% 88.91%
2.
/
2,640 1,629 00:04:42 66.39% 57.20%
3.
/404.html?page=/content/jett-east&from=
110 105 00:01:26 93.33% 93.64%
4.
/user
68 41 00:00:59 0.00% 5.88%
5.
/user/
66 26 00:01:52 0.00% 9.09%
6.
/404.html?page=/content/tidewater&from=
9 7 00:04:11 33.33% 44.44%
Related
I recently installed Rollbar on my to-be Production instance and I see that Rollbar has starting reporting this issue about not finding a WordPress login.
ActionController::RoutingError: No route matches [GET] "/blog/wp-login.php"
I searched through all my code and dont find any references wp-login.php and the stack trace is not helping either. Would you know where this might be coming from?
"/home/myproject/shared/bundle/ruby/2.1.0/gems/actionpack-4.0.13/lib/action_dispatch/middleware/debug_exceptions.rb" line 21 in call
"/home/myproject/shared/bundle/ruby/2.1.0/gems/rollbar-2.7.1/lib/rollbar/middleware/rails/show_exceptions.rb" line 22 in call_with_rollbar
"/home/myproject/shared/bundle/ruby/2.1.0/gems/actionpack-4.0.13/lib/action_dispatch/middleware/show_exceptions.rb" line 30 in call
"/home/myproject/shared/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/rack/logger.rb" line 38 in call_app
"/home/myproject/shared/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/rack/logger.rb" line 20 in block in call
"/home/myproject/shared/bundle/ruby/2.1.0/gems/activesupport-4.0.13/lib/active_support/tagged_logging.rb" line 68 in block in tagged
"/home/myproject/shared/bundle/ruby/2.1.0/gems/activesupport-4.0.13/lib/active_support/tagged_logging.rb" line 26 in tagged
"/home/myproject/shared/bundle/ruby/2.1.0/gems/activesupport-4.0.13/lib/active_support/tagged_logging.rb" line 68 in tagged
"/home/myproject/shared/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/rack/logger.rb" line 20 in call
"/home/myproject/shared/bundle/ruby/2.1.0/gems/actionpack-4.0.13/lib/action_dispatch/middleware/request_id.rb" line 21 in call
"/home/myproject/shared/bundle/ruby/2.1.0/gems/rack-1.5.5/lib/rack/methodoverride.rb" line 21 in call
"/home/myproject/shared/bundle/ruby/2.1.0/gems/rack-1.5.5/lib/rack/runtime.rb" line 17 in call
"/home/myproject/shared/bundle/ruby/2.1.0/gems/actionpack-4.0.13/lib/action_dispatch/middleware/static.rb" line 84 in call
"/home/myproject/shared/bundle/ruby/2.1.0/gems/rack-1.5.5/lib/rack/send.rb" line 112 in call
"/home/myproject/shared/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/engine.rb" line 511 in call
"/home/myproject/shared/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/application.rb" line 97 in call
"/home/myproject/shared/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/railtie/configurable.rb" line 30 in method_missing
"/home/myproject/shared/bundle/ruby/2.1.0/gems/unicorn-5.0.1/lib/unicorn/http_server.rb" line 562 in process_client
"/home/myproject/shared/bundle/ruby/2.1.0/gems/unicorn-5.0.1/lib/unicorn/http_server.rb" line 658 in worker_loop
"/home/myproject/shared/bundle/ruby/2.1.0/gems/unicorn-5.0.1/lib/unicorn/http_server.rb" line 508 in spawn_missing_workers
"/home/myproject/shared/bundle/ruby/2.1.0/gems/unicorn-5.0.1/lib/unicorn/http_server.rb" line 132 in start
"/home/myproject/shared/bundle/ruby/2.1.0/gems/unicorn-5.0.1/bin/unicorn" line 126 in <top (required)>
"/home/myproject/shared/bundle/ruby/2.1.0/bin/unicorn" line 23 in load
"/home/myproject/shared/bundle/ruby/2.1.0/bin/unicorn" line 23 in <main>
This is just the random background noise of the internet - scripts wander around looking for known security holes (in this case, one in WordPress) that their human might want to exploit. If someone ever puts your link into an MS Office document, you'll also see weird OPTIONS requests.
It's common to configure error reporting to ignore RoutingErrors, though of course there are pros and cons to that. It lets you ignore this noise, which can trigger false alarms, but if you ever actually render a bad URL, it can go unnoticed.
Hi I want to use highcharts in my Windows 8 app (HTML5 and JavaScript) but...
Exception. line 35, column 471 en ms-appx://c4c6faa3-6deb-457c-a894-94774f7ba6a1/herramientas/estadistica/js/highcharts/highcharts.js
0x800a139e - Error in runtime in JavaScript: Highcharts error #13: www.highcharts.com/errors/13
The jquery library used is a modified version.
Basically I want to see this in my W8 app, but I can't.
Thanks.
I developed an app with PhoneGap for BlackBerry and when I try to install this app onto a device, it show some text like:
Manifest-Version: 1.0
RIM-COD-URL-80: HELLOWORLD-80.cod
MIDlet-Jar-Size: 3757417
RIM-MIDlet-Icon-2-1: ____HOVER_ICON_resources/icon_hover.png,focused
RIM-COD-URL-79: HELLOWORLD-79.cod
RIM-COD-URL-78: HELLOWORLD-78.cod
RIM-COD-URL-77: HELLOWORLD-77.cod
RIM-COD-URL-76: HELLOWORLD-76.cod
RIM-COD-Size-80: 64944
RIM-COD-URL-75: HELLOWORLD-75.cod
RIM-COD-URL-74: HELLOWORLD-74.cod
RIM-COD-URL-73: HELLOWORLD-73.cod
MicroEdition-Configuration: CLDC-1.1
RIM-COD-URL-72: HELLOWORLD-72.cod
RIM-COD-URL-71: HELLOWORLD-71.cod
RIM-COD-URL-70: HELLOWORLD-70.cod
RIM-COD-Size-79: 45632
RIM-COD-Size-78: 38008
RIM-COD-Size-77: 53040
MIDlet-Version: 0.1.1
RIM-COD-Size-76: 51536
RIM-COD-Size-75: 51536
RIM-COD-Size: 69408
RIM-COD-Size-74: 51536
RIM-COD-URL-69: HELLOWORLD-69.cod
RIM-COD-Size-73: 51532
RIM-COD-URL-68: HELLOWORLD-68.cod
RIM-COD-Size-72: 51532
RIM-COD-URL-67: HELLOWORLD-67.cod
RIM-COD-Size-71: 54824
RIM-COD-URL-66: HELLOWORLD-66.cod
RIM-COD-Size-70: 55148
RIM-COD-URL-65: HELLOWORLD-65.cod
RIM-COD-URL-64: HELLOWORLD-64.cod
RIM-COD-URL-63: HELLOWORLD-63.cod
RIM-COD-URL-62: HELLOWORLD-62.cod
RIM-COD-URL-61: HELLOWORLD-61.cod
RIM-COD-URL-60: HELLOWORLD-60.cod
RIM-MIDlet-Flags-1: 0
MIDlet-Name: HELLO WORLD
RIM-COD-Size-69: 51436
RIM-COD-Size-68: 51436
RIM-COD-Size-67: 51436
RIM-COD-Size-66: 51436
RIM-COD-Size-65: 51436
RIM-COD-Size-64: 51436
RIM-COD-URL-59: HELLOWORLD-59.cod
RIM-COD-Size-63: 51416
RIM-COD-URL-58: HELLOWORLD-58.cod
RIM-COD-Size-62: 51416
RIM-COD-URL-57: HELLOWORLD-57.cod
RIM-COD-Size-61: 56940
RIM-COD-URL-56: HELLOWORLD-56.cod
RIM-COD-Size-60: 51340
RIM-COD-URL-55: HELLOWORLD-55.cod
RIM-COD-URL-54: HELLOWORLD-54.cod
RIM-COD-URL-53: HELLOWORLD-53.cod
RIM-COD-URL-52: HELLOWORLD-52.cod
RIM-COD-URL-51: HELLOWORLD-51.cod
RIM-COD-URL-50: HELLOWORLD-50.cod
RIM-MIDlet-Icon-Count-2: 1
RIM-MIDlet-Icon-Count-1: 1
RIM-COD-Size-59: 56428
RIM-COD-Size-58: 56012
RIM-COD-Size-57: 51348
RIM-COD-Size-56: 51344
RIM-COD-URL-9: HELLOWORLD-9.cod
RIM-COD-Size-55: 59132
RIM-COD-URL-8: HELLOWORLD-8.cod
RIM-COD-Size-54: 51460
RIM-COD-URL-49: HELLOWORLD-49.cod
RIM-COD-URL-7: HELLOWORLD-7.cod
RIM-COD-Size-53: 51460
RIM-COD-URL-48: HELLOWORLD-48.cod
RIM-COD-URL-6: HELLOWORLD-6.cod
MicroEdition-Profile: MIDP-2.0
RIM-COD-Size-52: 51460
RIM-COD-URL-47: HELLOWORLD-47.cod
RIM-COD-URL-5: HELLOWORLD-5.cod
RIM-COD-Size-51: 51440
RIM-COD-URL-46: HELLOWORLD-46.cod
RIM-COD-URL-4: HELLOWORLD-4.cod
RIM-COD-Size-50: 51440
RIM-COD-URL-45: HELLOWORLD-45.cod
RIM-COD-URL-3: HELLOWORLD-3.cod
RIM-COD-URL-44: HELLOWORLD-44.cod
RIM-COD-URL-2: HELLOWORLD-2.cod
RIM-COD-URL-43: HELLOWORLD-43.cod
RIM-COD-URL-1: HELLOWORLD-1.cod
RIM-COD-URL-42: HELLOWORLD-42.cod
RIM-COD-URL-41: HELLOWORLD-41.cod
RIM-COD-Size-9: 48440
RIM-COD-URL-40: HELLOWORLD-40.cod
RIM-COD-Size-8: 56444
RIM-COD-Size-7: 67932
RIM-COD-Size-6: 74336
RIM-COD-Size-5: 63684
RIM-COD-Size-4: 64960
RIM-COD-Size-3: 66384
RIM-COD-Size-2: 74136
RIM-COD-Size-1: 71816
RIM-COD-Size-49: 57512
RIM-COD-Size-48: 59124
RIM-COD-Size-47: 55580
RIM-COD-Size-46: 51464
RIM-COD-Size-45: 51464
RIM-COD-Size-44: 51464
RIM-COD-URL-39: HELLOWORLD-39.cod
RIM-COD-Size-43: 51460
RIM-COD-URL-38: HELLOWORLD-38.cod
RIM-COD-Size-42: 51460
RIM-COD-URL-37: HELLOWORLD-37.cod
RIM-COD-URL-36: HELLOWORLD-36.cod
RIM-COD-Size-41: 51332
RIM-COD-URL-35: HELLOWORLD-35.cod
RIM-COD-Size-40: 51464
RIM-COD-URL-34: HELLOWORLD-34.cod
RIM-COD-URL-33: HELLOWORLD-33.cod
RIM-COD-URL-32: HELLOWORLD-32.cod
RIM-COD-URL-31: HELLOWORLD-31.cod
RIM-COD-URL-30: HELLOWORLD-30.cod
RIM-COD-Module-Dependencies: net_rim_cldc,net_rim_bb_web_jse_api,net_rim_xml_org,net_rim_bb_browser_field2_api,net_rim_os,net_rim_bbapi_phone,net_rim_bbapi_mailv2,net_rim_bbapi_push,net_rim_bbapi_messagelist,net_rim_pdap,net_rim_bbapi_invoke,net_rim_bbapi_browser,net_rim_networkapi,net_rim_bb_browser_field_api,net_rim_xml,net_rim_locationapi
RIM-COD-SHA1-80: fa 1c 6a 70 fc d8 2d a5 87 ff c0 66 12 42 09 98 69 ee 2e d6
MIDlet-Vendor: Unknown
RIM-COD-Size-39: 52752
RIM-COD-Size-38: 55956
RIM-COD-Size-37: 52452
RIM-COD-Size-36: 51364
RIM-COD-Size-35: 58756
RIM-COD-URL-29: HELLOWORLD-29.cod
RIM-COD-Size-34: 52664
RIM-COD-URL-28: HELLOWORLD-28.cod
RIM-COD-Size-33: 51084
RIM-COD-URL-27: HELLOWORLD-27.cod
RIM-COD-Size-32: 51084
RIM-COD-URL-26: HELLOWORLD-26.cod
RIM-COD-Size-31: 51084
RIM-COD-URL-25: HELLOWORLD-25.cod
RIM-COD-Size-30: 51084
So do we need to unlock the device like windows 7 phone? My device is Blackberry Curve 9220
BlackBerry OS doesn't have the notion of a "developer unlock" the way Windows Phone does. All devices are the same.
You have a couple of options:
1. Only use APIs that do not require a signature. If you do this, then you can deploy your app to any device without any special treatment.
2. Use RIM's special APIs, and get a code signing key. To deploy the app with use of the special RIM APIs, you will need to sign the app. When unsigned, the app can be run on a simulator, but not a real device.
Modify .htaccess file of your server and add the following lines to it:
AddType text/vnd.sun.j2me.app-descriptor .jad
AddType application/vnd.rim.cod .cod
AddType application/java-archive .jar
You get text instead of installation process, because your server represents jad-file as a simple text file.
It is not necessary to unlock device before installing your custom application. The only thing you need to keep in mind, that is if you are using signed API, then you need to sign your application before installing it on an actual device.
Apply for signing keys here: http://www.blackberry.com/go/codesigning
You will receive an email with attached signing keys. Follow the instructions in the received email to install these keys and use them to sign your application.
When I run the Fusion Tables PHP Framework sample file "form_example.php" I get the following errors:
Notice: Undefined offset: 3 in C:\XAMPP\htdocs\php\fusion-tables-client-php\clientlogin.php on line 17
Notice: Undefined offset: 1 in C:\XAMPP\htdocs\php\form_example.php on line 31
Any help is greatly appreciated. My main goal is to test code that can insert a row into Fusion Tables from data entered in a form.
Thanks -
Sounds like ClientLogin is failing. The following stack overflow question might be helpful:
Can't connect to HTTPS site using cURL. Returns 0 length content instead. What can I do?
I'm stumped on why when I do doctrine:build -all it throws 2 warnings.
I've tried commenting out all the schema.yml files and it still throws it.
Anyone better informed help me understand where it is coming from, is there some caching I am unaware of?
I've deleted the cache (./symfony cc). Manually deleted all the lib/ models, forms, filters tasks so that there isn't anything hanging around and to no avail. I can't find anything on google for the error so I'm pretty stuck, I want to understand where the error is coming from, it's very early on in the process so I presume it is yaml related but I don't know how to track down where.
Cheers,
Paul
Shell output section Below:
doctrine generating model classes
PHP Warning: array_merge(): Argument #2 is not an array in /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBaseTask.class.php on line 182
PHP Stack trace:
PHP 1. {main}() /mnt/Target01/338166/www.example.co.uk/web/symfony:0
PHP 2. include() /mnt/Target01/338166/www.example.co.uk/web/symfony:14
PHP 3. sfSymfonyCommandApplication->run() /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/command/cli.php:20
PHP 4. sfTask->runFromCLI() /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/command/sfSymfonyCommandApplication.class.php:76
PHP 5. sfBaseTask->doRun() /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/task/sfTask.class.php:97
PHP 6. sfDoctrineBuildTask->execute() /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/task/sfBaseTask.class.php:68
PHP 7. sfTask->run() /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildTask.class.php:156
PHP 8. sfBaseTask->doRun() /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/task/sfTask.class.php:173
PHP 9. sfDoctrineBuildModelTask->execute() /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/task/sfBaseTask.class.php:68
PHP 10. sfDoctrineBaseTask->prepareSchemaFile() /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php:67
PHP 11. array_merge() /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBaseTask.class.php:182
Warning: array_merge(): Argument #2 is not an array in /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBaseTask.class.php on line 182
Call Stack:
0.0008 47204 1. {main}() /mnt/Target01/338166/www.example.co.uk/web/symfony:0
0.0136 279748 2. include('/mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/command/cli.php') /mnt/Target01/338166/www.example.co.uk/web/symfony:14
0.9075 7815564 3. sfSymfonyCommandApplication->run() /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/command/cli.php:20
0.9419 7817164 4. sfTask->runFromCLI() /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/command/sfSymfonyCommandApplication.class.php:76
0.9433 7818056 5. sfBaseTask->doRun() /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/task/sfTask.class.php:97
1.0198 8445008 6. sfDoctrineBuildTask->execute() /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/task/sfBaseTask.class.php:68
2.0900 9762304 7. sfTask->run() /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildTask.class.php:156
2.0907 9764724 8. sfBaseTask->doRun() /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/task/sfTask.class.php:173
2.0926 9766452 9. sfDoctrineBuildModelTask->execute() /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/task/sfBaseTask.class.php:68
2.1560 9789556 10. sfDoctrineBaseTask->prepareSchemaFile() /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php:67
4.3235 10119764 11. array_merge() /mnt/Target01/338166/www.example.co.uk/web/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBaseTask.class.php:182
file+ /tmp/doctrine_schema_70082.yml
I just stumbled over the same error. I had an error in my schema.yml by definining an empty table name:
SomeTableNameThatShouldHaveBeenRemoved:
SomeOtherTableName:
colums:
id: etc. pp
Rather easy to spot one would think, yet when such a vague warning is thrown ...