报错 invalid [default store dir]: /tmp/

简介: php sdk解压以后文件如下   推荐处理方案   1.如果使用支付宝sdk,首先lotusphp_runtime 文件也要一起使用  支付宝现在的php sdk中有lotus框架可以和aop文件   夹放在同一级   2.

php sdk解压以后文件如下

  

推荐处理方案   

1.如果使用支付宝sdk,首先lotusphp_runtime 文件也要一起使用  支付宝现在的php sdk中有lotus框架可以和aop文件   夹放在同一级   

2.保证AopSdk.php文件中的方法可以走到这个lotusphp_runtime对应的方法中,然后进行测试看看是否可以请求成功   

/**
 * 找到lotusphp入口文件,并初始化lotusphp
 * lotusphp是一个第三方php框架,其主页在:lotusphp.googlecode.com
 */
$lotusHome = dirname(__FILE__) . DIRECTORY_SEPARATOR . "lotusphp_runtime" . DIRECTORY_SEPARATOR;
include($lotusHome . "Lotus.php");
$lotus = new Lotus;
$lotus->option["autoload_dir"] = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'aop';
$lotus->devMode = AOP_SDK_DEV_MODE;
$lotus->defaultStoreDir = AOP_SDK_WORK_DIR;
$lotus->init();

  3.如果还是报错,打开AopSdk.php  把下面:"/tmp/"文件夹 ,文件夹名称自定义, window环境改成绝对路径,    并且保证这个文件夹有读写权限   

/**
 * SDK工作目录
 * 存放日志,AOP缓存数据
 */
if (!defined("AOP_SDK_WORK_DIR"))
{   
    //  "/tmp/"文件夹名称自定义, 改成绝对路径,并且保证这个文件夹有读写权限
    define("AOP_SDK_WORK_DIR", "/tmp/");
}

   4.修改完成再进行测试。

目录
相关文章
|
16天前
|
关系型数据库 MySQL Linux
FATAL ERROR: Could not find my_print_defaults
FATAL ERROR: Could not find my_print_defaults
|
8月前
|
前端开发
【前端异常】Module build failed: Error: ENOENT: no such file or directory, scandir ‘G:\OPWeb\public\node_m
【前端异常】Module build failed: Error: ENOENT: no such file or directory, scandir ‘G:\OPWeb\public\node_m
97 0
|
1月前
|
Java
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
49 1
|
1月前
|
JavaScript API
Property ‘proxy‘ does not exist on type ‘ComponentInternalInstance | null‘.ts
Property ‘proxy‘ does not exist on type ‘ComponentInternalInstance | null‘.ts
|
9月前
|
JavaScript
Error TS6138 - Property xxxx is declared but its value is never read
Error TS6138 - Property xxxx is declared but its value is never read
|
9月前
cancal报错 config dir not found
cancal报错 config dir not found
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
Could not initialize English chunker/Could not load file from classpath: ‘/en-token.bin‘
Could not initialize English chunker/Could not load file from classpath: ‘/en-token.bin‘
88 0
Perhaps you should add the directory containing libpcre.pc to the PKG_CONFIG_PATH
Perhaps you should add the directory containing libpcre.pc to the PKG_CONFIG_PATH
109 0
解决 lupdate warning: no TS files specified.
解决 lupdate warning: no TS files specified.