How to solve the error: Warning call_user_func_array() C...\wp-includes\class-wp-hook.php? - wordpress

Explanation: I have recently installed version 4.7.10.
My program is failing after the upgrade. How can I solve the error found below:
**( ! ) Warning: call_user_func_a rray() expects parameter 1 to be a valid callback, function 'myplguin_admin_sub_page' not found or invalid function name in C:\wamp64\www\sumit\wp-includes\class-wp-hook.php on line 298
Call Stack
# Time Memory Function Location
1 0.0050 308232 {main}( ) ...\admin.php:0
2 0.8550 33806248 do_action( ) ...\admin.php:222
3 0.8550 33806968 WP_Hook->do_action( ) ...\plugin.php:453
4 0.8550 33807048 WP_Hook->apply_filters( ) ...\class-wp-hook.php:323
5 0.8550 33807848 call_user_func_array:{C:\wamp64\www\sumit\wp-includes\class-wp-hook.php:298} ( ) ...\class-wp-hook.php:298**

Related

WordPress call to a member function get_error_codes() on null error

WordPress returns an error on the line where I call get_error_codes():
add_filter( 'login_errors', function( $error ) {
global $errors;
//var_dump($errors);
$err_codes = $errors->get_error_codes();
$error = 'Message here.';
return $error;
});
Here is the full error message:
Fatal error: Uncaught Error: Call to a member function get_error_codes() on null in /app/www/wp-content/themes/shoptheme/functions.php:1065
Stack trace:
#0 /app/www/wp-includes/class-wp-hook.php(307): {closure}('<strong>Error</...')
#1 /app/www/wp-includes/plugin.php(191): WP_Hook->apply_filters('<strong>Error</...', Array)
#2 /app/www/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(983): apply_filters('login_errors', '<strong>Error</...')
#3 /app/www/wp-includes/class-wp-hook.php(307): WC_Form_Handler::process_login('')
#4 /app/www/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#5 /app/www/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#6 /app/www/wp-settings.php(620): do_action('wp_loaded')
#7 /app/www/wp-config.php(111): require_once('/app/www/wp-set...')
#8 /app/www/wp-load.php(50): require_once('/app/www/wp-con...')
#9 /app/www/wp-blog-header.php(13): require_once('/app/www/wp-loa...')
#10 /app/www/index.php(17): require('/app/www/wp-blo...')
#11 {main}
thrown in /app/www/wp-content/themes/shoptheme/functions.php on line 1065
I am trying to understand what is happening here. Is the WooCommerce apply_filters on 'login_errors' not allowing me to do this?

Running embedded R code in Oracle raise error

I am a newbie in Oracle R embedded execution.
well, I have following code registered as
BEGIN
sys.rqScriptDrop('TSFORECAST');
SYS.RQSCRIPTCREATE('TSFORECAST',
'function(dat){
require(ORE)
require(forecast)
myts <- ts(dat,frequency=12)
model <- auto.arima(myts)
fmodel <- forecast(model)
fm = data.frame(fmodel$mean, fmodel$upper,fmodel$lower)
names(fm) <- c("mean","l80","l95","u80","u95")
return(fm)
}'
);
END;
as I execute the function for the first time with this code:
select *
from table(
rqTableEval(
cursor(select balance from tmp_30),
cursor(select 1 as "ore.connect" from dual),
'select 1 mean, 1 l80, 1 l95, 1 u80, 1 u95 from dual',
'TSFORECAST'
)
)
it generates the results I expected. But after that it will never produce any result but instead it raises this error:
ORA-20000: RQuery error
Error in (function () :
unused arguments (width = 480, bg = "white", type = "raster")
ORA-06512: at "RQSYS.RQTABLEEVALIMPL", line 112
ORA-06512: at "RQSYS.RQTABLEEVALIMPL", line 109
20000. 00000 - "%s"
*Cause: The stored procedure 'raise_application_error'
was called which causes this error to be generated.
*Action: Correct the problem as described in the error message or contact
the application administrator or DBA for more information.
I have searched this error but could not find anything helpful. Can anyone help me with this error?

Error after Installation Symfony (app_dev.php)

When I'm going to: Localhost/path_of_project/web/Check%20app_dev.php I have this.. I don't understand why .. Because all of the project is on CHMOD 777 (Many problems on permissions..)
( ! ) Fatal error: Uncaught exception 'Symfony\Component\Routing\Exception\ResourceNotFoundException' in /var/www/whitesmoke/public_html/whitesmoke/vendor/sensio/framework-extra-bundle/EventListener/ControllerListener.php on line 89
( ! ) Symfony\Component\Routing\Exception\ResourceNotFoundException: in /var/www/whitesmoke/public_html/whitesmoke/app/cache/prod/appProdUrlMatcher.php on line 39
Call Stack
# Time Memory Function Location
1 0.0005 238728 {main}( ) ../app.php:0
2 0.0200 1601096 Symfony\Component\HttpKernel\Kernel->handle( ) ../app.php:28
3 0.0437 3599400 Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle( ) ../bootstrap.php.cache:2444
4 0.0437 3600624 Symfony\Component\HttpKernel\HttpKernel->handle( ) ../bootstrap.php.cache:3222
5 0.0437 3601576 Symfony\Component\HttpKernel\HttpKernel->handleRaw( ) ../bootstrap.php.cache:3071
6 0.0445 3636880 Symfony\Component\EventDispatcher\EventDispatcher->dispatch( ) ../bootstrap.php.cache:3098
7 0.0476 3932472 Symfony\Component\EventDispatcher\EventDispatcher->doDispatch( ) ../EventDispatcher.php:48
8 0.0501 4221216 call_user_func:{/var/www/whitesmoke/public_html/whitesmoke/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:160} ( ) ../EventDispatcher.php:160
9 0.0501 4221800 Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest( ) ../EventDispatcher.php:160
10 0.0501 4222560 Symfony\Component\Routing\Router->matchRequest( ) ../RouterListener.php:137
11 0.0512 4321448 Symfony\Component\Routing\Matcher\UrlMatcher->matchRequest( ) ../Router.php:256
12 0.0512 4321568 appProdUrlMatcher->match( ) ../UrlMatcher.php:112
( ! ) Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "GET /Check%20app_dev.php" in /var/www/whitesmoke/public_html/whitesmoke/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php on line 159
Call Stack
# Time Memory Function Location
1 0.0005 238728 {main}( ) ../app.php:0
2 0.0200 1601096 Symfony\Component\HttpKernel\Kernel->handle( ) ../app.php:28
3 0.0437 3599400 Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle( ) ../bootstrap.php.cache:2444
4 0.0437 3600624 Symfony\Component\HttpKernel\HttpKernel->handle( ) ../bootstrap.php.cache:3222
5 0.0437 3601576 Symfony\Component\HttpKernel\HttpKernel->handleRaw( ) ../bootstrap.php.cache:3071
6 0.0445 3636880 Symfony\Component\EventDispatcher\EventDispatcher->dispatch( ) ../bootstrap.php.cache:3098
7 0.0476 3932472 Symfony\Component\EventDispatcher\EventDispatcher->doDispatch( ) ../EventDispatcher.php:48
8 0.0501 4221216 call_user_func:{/var/www/whitesmoke/public_html/whitesmoke/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:160} ( ) ../EventDispatcher.php:160
9 0.0501 4221800 Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest( ) ../EventDispatcher.php:160
( ! ) Symfony\Component\Debug\Exception\ContextErrorException: Catchable Fatal Error: Argument 1 passed to Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::getConfigurations() must be of the type array, integer given, called in /var/www/whitesmoke/public_html/whitesmoke/vendor/sensio/framework-extra-bundle/EventListener/ControllerListener.php on line 61 and defined in /var/www/whitesmoke/public_html/whitesmoke/vendor/sensio/framework-extra-bundle/EventListener/ControllerListener.php on line 89
Call Stack
# Time Memory Function Location
1 0.0005 238728 {main}( ) ../app.php:0
2 0.0200 1601096 Symfony\Component\HttpKernel\Kernel->handle( ) ../app.php:28
3 0.0437 3599400 Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle( ) ../bootstrap.php.cache:2444
( ! ) Symfony\Component\Debug\Exception\ContextErrorException: Catchable Fatal Error: Argument 1 passed to Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::getConfigurations() must be of the type array, integer given, called in /var/www/whitesmoke/public_html/whitesmoke/vendor/sensio/framework-extra-bundle/EventListener/ControllerListener.php on line 61 and defined in /var/www/whitesmoke/public_html/whitesmoke/vendor/sensio/framework-extra-bundle/EventListener/ControllerListener.php on line 89
Call Stack
# Time Memory Function Location
1 0.0809 7921816 Symfony\Component\Debug\ErrorHandler->handleException( ) ../ErrorHandler.php:0
2 0.0839 8171088 Symfony\Component\Debug\ErrorHandler->handleException( ) ../ErrorHandler.php:511
Could you help me ? :s
If I am not mistaken you just asking wrong url.
There is no (and could not be) a path '/Check/app_dev.php'.
Instead of this try to request /app_dev.php url (without 'Check').
Look at Symfony project file system.
There is /app/check.php file and /web/config.php.
I assume you might want to access one of them.

Error DimensionMismatch in Julia

Hi,
Learning a bit more about Julia (0.4.0), I am facing an interesting situation, probably with a simple solution that escapes me.
I have an array similar to this one:
17200x11 Array{Any,2}:
1 -16.449 -1.091 -3.6087 -12.6724 -1.5945 -14.7705 -7.2174 -25.2609 -3.7766 -14.3509
1 -16.6168 -5.2032 1.091 -3.8605 1.1749 -11.6653 -6.1264 -16.3651 -2.0142 -14.0991
1 -16.8686 -7.3853 3.8605 6.2103 -0.9232 -6.546 -8.1406 -10.0708 -2.2659 -16.3651
1 -16.5329 -10.4904 -1.7624 8.1406 -10.2386 1.3428 -16.0294 -6.4621 -4.6158 -19.5541
1 -13.8474 -13.5117 -13.6795 1.9302 -18.5471 3.6087 -22.995 -4.2801 -8.2245 -17.9596
1 -9.1476 -13.7634 -20.6451 -1.7624 -18.2953 1.091 -24.0021 -2.7695 -10.4904 -8.3923
1 -4.6997 -8.9798 -14.267 1.6785 -10.7422 1.1749 -19.3024 -2.2659 -11.0779 -2.6016
I have built a function like this one:
function aligner(mat,sc=schord)
ls=#parallel vcat for i=1:Int64(size(mat,1)/sc)
hcat(mat[((i-1)*sc+1),1],reshape(mat[((i-1)*sc+1):(i*sc),2:end],length(mat[((i-1)*sc+1):(i*sc),2:end]))') # reshape to convert array to vector and ' to transpose
end
return ls
end
Running this line
tmpU=aligner(tmpR,100)
I got this error:
ERROR: DimensionMismatch("mismatch in dimension 1 (expected 1 got 100)")
in cat_t at abstractarray.jl:824
in hcat at abstractarray.jl:849
[inlined code] from none:3
in anonymous at no file:1500
in anonymous at multi.jl:684
in run_work_thunk at multi.jl:645
in remotecall_fetch at multi.jl:718
in remotecall_fetch at multi.jl:734
in anonymous at multi.jl:1485
in yieldto at /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
in wait at /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib (repeats 3 times)
in preduce at multi.jl:1489
[inlined code] from multi.jl:1498
in anonymous at expr.jl:1543
in aligner at none:2
Curiously, if I use only the core of the function (and of course, mat=myArray and sc=100), it works perfectly.
ls=#parallel vcat for i=1:Int64(size(mat,1)/sc)
hcat(mat[((i-1)*sc+1),1],reshape(mat[((i-1)*sc+1):(i*sc),2:end],length(mat[((i-1)*sc+1):(i*sc),2:end]))') # reshape to convert array to vector and ' to transpose
end
172x1001 Array{Any,2}:
1 -16.449 -16.6168 -16.8686 -16.5329 -13.8474 -9.1476 -4.6997 … 10.3226 3.273 -0.2518 4.364 7.2174 1.3428 -6.2103
1 -21.6522 -14.6866 -15.0223 -19.9738 -21.7361 -22.5754 -23.3307 12.1689 12.1689 8.0566 3.6926 3.0212 3.9444 1.3428
1 -6.6299 -4.6997 3.6926 7.5531 7.3013 4.1962 5.3711 -15.5258 -12.2528 -7.5531 -7.1335 -12.3367 -17.4561 -17.2882
1 9.903 5.9586 3.3569 4.1962 4.8676 4.6997 8.3923 0.9232 -0.5035 -5.9586 -9.9869 -9.6512 -1.7624 4.4479
1 19.1345 14.183 10.1547 10.4904 8.2245 2.4338 -3.6926 -4.8676 -6.7978 -8.8959 -11.5814 -15.0223 -11.0779 -3.1891
1 -3.1052 -0.7553 6.3782 6.2943 0.9232 0.8392 4.0283 … -8.0566 -8.5602 -9.5673 -10.6583 -8.0566 -2.2659 1.2589
I would appreciate any help to understand/solve the problem.
Kind Regards, RN
Well, it seems the solution is really simple:
function aligner(mat::Array,sc::Int=schord)
ls::Array=#parallel vcat for i=1:Int64(size(mat,1)/sc)
hcat(mat[((i-1)*sc+1),1],reshape(mat[((i-1)*sc+1):(i*sc),2:end],length(mat[((i-1)*sc+1):(i*sc),2:end]))') # reshape to convert array to vector and ' to transpose
end
return ls
end
!

Caused a HMError when running HTKDemo

I just installed HTS-2.2 and HTK-3.4.1 in my 64bit Ubuntu with gcc 3.4 compiler. After that, typing HInit and HCopy etc. seemed work. So I wondered how the HTKDemo works.
When I run the demo, HTK caused a problem:
HMM Def Error: <Mean> symbol expected in GetMean at line 6/col 11/char 120 in proto/L
ERROR [+7050] HMError:
HMM Def Error: GetMean Failed at line 6/col 12/char 121 in proto/L
ERROR [+7050] HMError:
HMM Def Error: Regression Class Number expected at line 7/col 0/char 122 in proto/L
ERROR [+7050] HMError:
HMM Def Error: GetMixtures failed at line 7/col 1/char 123 in proto/L
ERROR [+7050] HMError:
HMM Def Error: Get Stream Information failed at line 7/col 2/char 124 in proto/L
ERROR [+7050] HMError:
HMM Def Error: GetStream failed at line 7/col 3/char 125 in proto/L
ERROR [+7050] HMError:
HMM Def Error: GetStateInfo failed at line 7/col 4/char 126 in proto/L
ERROR [+7050] HMError:
ERROR [+7032] LoadHMMSet: GetHMMDef failed
ERROR [+2128] Initialise: LoadHMMSet failed
FATAL ERROR - Terminating program HInit
Source Directory Empty hmms/hmm.0
The same to the proto S, V, N, C.
I really want to know the reason and how to fix it? Thx!
I got the same +7050 error, in my case was a mispelled hmm definition file, probably you have the same problem since the error reported: " symbol expected".
Just check your definition file had the right format as follows:
~h (phoneme name)
<BEGINHMM>
<NUMSTATES> (NStates)
<STATE> 2 (number starting from 2, ending NStates-1 )
<MEAN> 13 (or any number defined)
-4.717658e+000 ...
<VARIANCE> 13 (the same as mean possibly)
4.735534e+001 ...
<STATE> 3 ....
...
<GCONST> 1.269744e+002
<TRANSP> 3 (again not important)
0.0 1.0 0.0
0.0 0.9 0.1
0.0 0.0 0.0
<ENDHMM>
~h (next phoneme )
...

Resources