报错 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.修改完成再进行测试。

目录
相关文章
|
15天前
|
存储
tracker_query_storage fail, error no: 28, error info: No space left on device
tracker_query_storage fail, error no: 28, error info: No space left on device
10 0
|
6月前
|
前端开发
【前端异常】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
69 0
|
4月前
|
JavaScript API
Property ‘proxy‘ does not exist on type ‘ComponentInternalInstance | null‘.ts
Property ‘proxy‘ does not exist on type ‘ComponentInternalInstance | null‘.ts
|
4月前
|
Dubbo 应用服务中间件
【Default config not found for ApplicationConfig】的一种解决方案
【Default config not found for ApplicationConfig】的一种解决方案
110 0
|
7月前
|
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
51 0
|
7月前
cancal报错 config dir not found
cancal报错 config dir not found
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‘
83 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
99 0
|
PyTorch 算法框架/工具
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument
127 0
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument
解决 lupdate warning: no TS files specified.
解决 lupdate warning: no TS files specified.