Fatal error when adapting my extension for Joomla 3 - joomla3.0

I am trying to adapt my extension for Joomla 3 and I am getting the following error
As you can see the Call Stack does not help a lot..
Any ideas?

Related

Ionic 2 angular-2-in-memory-web-api 404 error

I've been developing a simple app in Ionic 2 and I tried using mock service (in-memory web API) for fetching data as described in this Angular 2 tutorial. My console reported this error:
TypeScript error: app/app.ts(11,49): Error TS2307: Cannot find module
'angular2-in-memory-web-api'.
I tried this solution: angular2-in-memory-web-api 404 error. After running this: npm i angular2-in-memory-web-api --save, I was unable to find the files where I was supposed to use the code provided in the rest of the solution.
How can I fix this? Sorry if the question is not posed quite right, this is my first one. Please ask if any additional information is needed. The problem is pretty much the same as the one for which the solution was provided in the link above, except that using Ionic 2 makes the given solution inapplicable in my case. I'm don't think SystemJS is being used, please see my file structure image.
Image of my file structure.

Cordova FileTransfer abort error

I am using cordova to develop my app. When i using file transfer plugin, the following error occurred.
{"target":"file:\/\/\/storage\/emulated\/0\/com.ibm.systems.supportassistant\/001\/1.1.0.12.zip","http_status":200,"code":3,"source":"http:\/\/messagefindertest.mybluemix.net\/001\/1.1.0.12.zip","exception":"length=4096; regionStart=0; regionLength=-2467"}
java.lang.ArrayIndexOutOfBoundsException: length=4096; regionStart=0; regionLength=-2467
Error message in detail
Any help in resolving the issue is appreciated
I've got the answer. It is a bug of the file transfer plugin. This bug have been fixed by the new version on CB-8431 Catch workaround for fatal exception.

Not able to load Drupal site

I have downloaded a new theme from Themeforest however when loading the site I m getting the below error.
Even developer is confused about the error.
I believe its more of drupal issue can anyone help?
Fatal error: require_once(): Failed opening required 'C:\wamp\www\sites\all\modules\media\file_entity/file_entity.file_api.inc' (include_path='.;c:\wamp\bin\php\php5.4.12\pear') in C:\wamp\www\sites\all\modules\media\file_entity\file_entity.module on line 13
Can you try using relative path like
require_once("./file_entity.file_api.inc");
Before that you need to find out the getcwd() for getting the current working directory.'
then give relative path according to that.
OR
use below,
require_once(DRUPAL_ROOT . '/sites/all/modules/media/file_entity/file_entity.file_api.inc');

Step 3 of Angular.js tutorial

I am on step 3 of the angular tutorial. I've gotten everything to work before step 3. However, on step 3, when I run ./scripts/e2e-test.sh, I get the following error:
Uncaught ReferenceError: describe is not defined
I believe it is referring to scenarios.js. Any help would be most appreciated.
Why not download Setp-3 source code,and compare different with your code? like this

Drupal Cron not working manually

I got following Error when i run cron manually for my Drupal 7.
Fatal error: Call to undefined function db_fetch_object() in /home/sitename/public_html/example.com/modules/php/php.module(80) : eval()'d code on line 57
The error seems that "db_fetch_object()" function is undefined. I searched around it and found that the this function is no longer used for Drupal 7. I verified each module and they are pointed to Drupal 7 version.
I installed the "Search Debug" module and found that this error only occurs when i run cron only for "Search" module. The search module pick each module for indexing but was very hard to find which module has an error. I don't know how to debug this problem.
Anyone help me?
One more thing i got "Unexpected termination of cron channel default, aborted. Last job executed: search_cron" error under the "Recent Log Messages".
First thing try not to use db_fetch_object in Drupal 7 as it is used in drupal 6, Try to use db wrapper functions in drupal 7 which are using db_query with findAll, FindAll,fetchAllAssoc().
If you are running cron from an individual file make sure you have load full drupal bootstrap.

Resources