I'm working on YII and I get 500 Undefined Message. It does not tell me a lot. How can I get what's the problem? Is there any debug mode for it?
This may be the PHP Notice.
Due to undefined variables it is coming.
Put these below line in index.php
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE | E_STRICT | E_DEPRECATED);
error_reporting(E_ALL ^ E_NOTICE);
Should be like this
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE | E_STRICT | E_DEPRECATED);
error_reporting(E_ALL ^ E_NOTICE);
require_once($yii);
Yii::createWebApplication($config)->run();
You should enable YII_DEBUG in your index.php to receive the full trace. This should help you to find out, where the error occured exactly. Be sure to not do this on your production machine, though, as it may echo sensible data like DB credentials to the screen.
define('YII_DEBUG', true);
Related
I recently cloned, ran npm install and npm run test for a test Cafe project and I immediately got the following error:
Increase the value of the "pageRequestTimeout" variable, enable the "retryTestPages" option, or use quarantine mode to perform additional attempts to execute this test.
Error details:
Failed to find a DNS-record for the resource at "http://localhost:3000/".
Browser: Chrome 97.0.4692.71 / macOS 10.15.7
23 | async getLoginValidationIssue() {
24 | return Selector('[data-cy=failed-auth]')
25 | }
26 |
27 | async login(username, pwd) {
> 28 | await t.typeText('input[name=email]', username)
29 | await t.typeText('input[name=password]', pwd)
30 | await t.click(this.submitButton)
31 | return t;
32 | }
33 |
This is my first time trying to use test Cafe so I am unclear what is going on.
I suppose that your website doesn't run, and that's why it isn't available at the 3000 port by the "http://localhost:3000/" URL. Could you please check whether you can open the site at "http://localhost:3000/" in your browser before the execution of tests? The web resource tested by TestCafe must be available by the corresponding URL, in your case it is "http://localhost:3000/" .
I'm using a library called react-native-modals which is supported only for iOS and
Android and is working fine on both platforms. But when I run the app on web, it fails
to compile:
/node_modules/react-native-animatable/createAnimatableComponent.js
SyntaxError: /home/rohits/RR/React-native/typtap-policyholder-web-
mobile/node_modules/react-native-animatable/createAnimatableComponent.js: Support for
the experimental syntax 'jsx' isn't currently enabled (599:9):
597 |
598 | return (
> 599 | <Animatable
| ^
600 | ref={this.handleRef}
601 | style={[
602 | style,
Add #babel/preset-react (https://git.io/JfeDR) to the 'presets' section of your Babel
config to enable transformation.
If you want to leave it as-is, add #babel/plugin-syntax-jsx (https://git.io/vb4yA) to
the 'plugins' section to enable parsing.
Compilation errors occur even if I use other libraries which are not supported on web.
A little background..
As mentioned before in https://forum.vuejs.org/t/how-to-make-webpack-vue-work-on-xampp/33808. And it works when I put my Vue project directly in htdocs like this.
htdocs/
| - css/
| - js/
| etc..
However I'm using it differently, here's my current file structure in the htdocs.
htdocs/
| - project1/
| | - css/
| | - some other stuff for project1
| - project2/
| | - css/
| | - some other stuff for project2
| - vue-project/ (Where I wanted my Vue went to)
| | - css/
| | - stuff..
The error I get when I put dist/ of my vue project directly to htdocs/vue-project is 404, because they directly went back to the root file (root is htdocs/), in which it doesn't find the required file to launch Vue Project!
What I wanted
Anything that can launch the project in htdocs/vue-project/. Would accept any answer configuring either settings in the Vue/Webpack OR from XAMPP itself. If you need additional information please do ask in the comment section.
And if it turns out there are no other way, then I would accept answers involving XAMPP configuration on how to start a server in a different directories. Like start a server in htdocs, and other-file would be great as well.
For Vue CLI before 3.x
Try changing assetsPublicPath under build object in config/index.js. Then append your folder name there. Similiar issue that might help https://forum.vuejs.org/t/vue-js-webpack-deployment-for-xaamp-testing/28970
And if vue-router used then add ROUTER_BASE.
https://router.vuejs.org/en/api/options.html#base
For Vue CLI 3
Create vue.config.js inside your vue-projects
Inside it simply add the following
module.exports = {
publicPath: "/{path-to-your-vue-project}"
}
For more information please refer to this docs https://cli.vuejs.org/config/#publicpath
Whenever I try to load the libmod_sm22.so or libmodsm_20.so module into apache-2.4.6, I am getting error as shown below :
httpd: Syntax error on line 65 of httpd.conf: Cannot load /opt/software/siteminder/waR12cr009/webagent/bin/libmod_sm22.so into server: /opt/software/siteminder/waR12cr009/webagent/bin/libmod_sm22.so: undefined symbol: unixd_config
From the apache documentation I found that apache-2.4.6 API has changed ‘unixd_config’ to ‘ap_unixd_config’!
But the libmod_sm20.so / libmod_sm22.so is still looking for ‘unixd_config’
In the apache’s include folder I have found references for the unixd_config symbol as shown below
============================================================================
[apache#VDCLL1828 include]$ cat ap_mmn.h |grep 'unixd_config'
* 20071108.9 (2.3.0-dev) Add chroot support to unixd_config
* 20101106.2 (2.3.9-dev) Add suexec_disabled_reason field to ap_unixd_config
* add ap_unixd_config.group_name
[apache#VDCLL1828 include]$ cat unixd.h |grep 'unixd_config'
} unixd_config_rec;
AP_DECLARE_DATA extern unixd_config_rec ap_unixd_config;
===========================================================
I didn’t try to change these references as these are not completely related to what I am looking for & in turn this may break other working things if I mess up.
At this point I have two options to make siteminder working in apache-2.4.6
1) Prepare the libmod_sm22.so that it looks for ap_unixd_config instead of unixd_config (If possible)
2) Look out for a patch to apache 2.4.6 api .
Any thoughts around this are highly appreciated.
Thanks,
Kiran
I'm trying to install the couponic on my localhost (xampp), but I'm getting an error message:
Strict Standards: Non-static method UFactory::getModuleAlias() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\couponic\framework\uniprogy\framework\worklets\UWorkletConstructor.php on line 254
This is one of the errors, but all of them are from the same type on the same function (getModuleAlias).
I already rename the protected/config/inital folder to protected/config/public and when I access using the url right url (localhost/couponic/install) I get these errors.
Can you help me?
The problem here is that you have install probably in localhost php 5.4 and couponic doesn't support php 5.4, to bypass this problem you will have to replace
public function getModuleAlias($module)
with
static public function getModuleAlias($module)
but more problem will come up, until uniprogy make the script working on php 5.4
Disable strict errors in your php.ini:
error_reporting = E_ALL
Right now you probably have:
E_ALL & E_STRICT
So you need to lose the E_STRICT part.
I had "E_ALL" already and it wasn't working. I switched to "E_ERROR" and that did the trick.
error_reporting = E_ERROR
E_ALL "includes E_STRICT as of PHP 6.0.0" but we're not quite there yet.