Comments (11)
What version of PHP and php-jira-rest-client package are you using?
from php-jira-rest-client.
I fix this problem, the problem was the version true, but now i have all perfect, and i have this problem;
Fatal error: Class 'JiraRestApi\JIRAException' not found in /opt/lampp/htdocs/vendor/lesstif/php-jira-rest-client/src/JiraClient.php on line 348
When i try to add attachment;
$issueService = new IssueService();
$issueKey = 'PT-13';
// multiple file upload support.
$ret = $issueService->addAttachments($issueKey,array('/home/centos/Downloads/mentor-half.png'));
echo '<pre>';
print_r($issueService);
print_r($ret);
echo '</pre>';
die();
Can you help me, i have the image in local, in centos machine?
from php-jira-rest-client.
are your inserted require 'vendor/autoload.php'; statement at top of the code. ?
from php-jira-rest-client.
Yes i have in the main conf.php
// Configure the Twig template system
require_once $CONF->vendor . 'autoload.php';
Twig_Autoloader::register(true);
$TWIG = new Twig_Environment(new Twig_Loader_Filesystem($CONF->template));
And i hace .env configurate good aswell.
I dont know what happend :(
2016-04-11 16:53 GMT+02:00 KwangSeob Jeong [email protected]:
are your inserted require 'vendor/autoload.php'; statement at top of
the code. ?—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#28 (comment)
from php-jira-rest-client.
composer download depencenties into the vendor directory.
you can just start using classes from it, and they will be autoloaded.
<?php
require __DIR__ . '/vendor/autoload.php';
check the $CONF variable's value at runtime and fix it.
from php-jira-rest-client.
$CONF->app = $_SERVER['DOCUMENT_ROOT'];
$CONF->baseUrl = '/app/';
$CONF->private = preg_replace('#/+#', '/', $CONF->app.'/private/');
$CONF->vendor = preg_replace('#/+#', '/', $CONF->app.'/vendor/');
$CONF->template = preg_replace('#/+#', '/',
$CONF->app.$CONF->baseUrl.'/templates');
$CONF->lang = 'en_GB';
$CONF->strings = array();
// Configure the Twig template system
require_once $CONF->vendor . 'autoload.php';
Twig_Autoloader::register(true);
$TWIG = new Twig_Environment(new Twig_Loader_Filesystem($CONF->template));
I have good config, and work good for all, i dont understan the problem
2016-04-12 8:38 GMT+02:00 KwangSeob Jeong [email protected]:
composer download depencenties into the vendor directory.
you can just start using classes from it, and they will be autoloaded.
from php-jira-rest-client.
In mi autoload.php i have this:
$CONF->app = $_SERVER['DOCUMENT_ROOT']; > $CONF->baseUrl = '/app/'; > > $CONF->private = preg_replace('#/+#', '/', $CONF->app.'/private/'); > $CONF->vendor = preg_replace('#/+#', '/', $CONF->app.'/vendor/'); > $CONF->template = preg_replace('#/+#', '/', > $CONF->app.$CONF->baseUrl.'/templates'); > > $CONF->lang = 'en_GB'; > $CONF->strings = array(); > > // Configure the Twig template system > require_once $CONF->vendor . 'autoload.php'; > Twig_Autoloader::register(true); > $TWIG = new Twig_Environment(new Twig_Loader_Filesystem($CONF->template)); > > I have good config, and work good for all, i dont understan the problem > > 2016-04-12 8:38 GMT+02:00 KwangSeob Jeong [email protected]: > > > composer download depencenties into the vendor directory. > > you can just start using classes from it, and they will be autoloaded. > > > > > > > check the $CONF variable's value at runtime and fix it. > > > > — > > You are receiving this because you authored the thread. > > Reply to this email directly or view it on GitHub > > https://github.com//issues/28#issuecomment-208732094from php-jira-rest-client.
Im tring to get all the projects with your library and i get this msg:
Fatal error: Uncaught exception 'JiraRestApi\JiraException' with message
'CURL HTTP Request Failed: Status Code : 401, URL:
https://interiorvista.atlassian.net/rest/api/2/project Error Message :
the .env its in the root, so i donrt know what happends...
2016-04-12 9:31 GMT+02:00 Matias Menker [email protected]:
In mi autoload.php i have this:
$CONF->app = $_SERVER['DOCUMENT_ROOT']; > $CONF->baseUrl = '/app/'; > > $CONF->private = preg_replace('#/+#', '/', $CONF->app.'/private/'); > $CONF->vendor = preg_replace('#/+#', '/', $CONF->app.'/vendor/'); > $CONF->template = preg_replace('#/+#', '/', > $CONF->app.$CONF->baseUrl.'/templates'); > > $CONF->lang = 'en_GB'; > $CONF->strings = array(); > > // Configure the Twig template system > require_once $CONF->vendor . 'autoload.php'; > Twig_Autoloader::register(true); > $TWIG = new Twig_Environment(new Twig_Loader_Filesystem($CONF->template)); > > I have good config, and work good for all, i dont understan the problem > > 2016-04-12 8:38 GMT+02:00 KwangSeob Jeong [email protected]: > > > composer download depencenties into the vendor directory. > > you can just start using classes from it, and they will be autoloaded. > > > > > > > check the $CONF variable's value at runtime and fix it. > > > > — > > You are receiving this because you authored the thread. > > Reply to this email directly or view it on GitHub > > https://github.com//issues/28#issuecomment-208732094
from php-jira-rest-client.
I'm found case typo error with JiraException class naming.
i will fixes it and release new version as soon as possible.
from php-jira-rest-client.
Ok perfect!
2016-04-12 11:11 GMT+02:00 KwangSeob Jeong [email protected]:
I'm found case typo error with JiraException class naming.
i will fixes it and release new version as soon as possible.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#28 (comment)
from php-jira-rest-client.
you need create .env file and setting jira credential info into it.
from php-jira-rest-client.
Related Issues (20)
- Epic tasks include subtasks but subtask timeTracking is null HOT 3
- PHP 8.2 support
- `IssueField::duedate` unused HOT 2
- Creation of dynamic property JiraRestApi\Issue\Worklog::$issueId & Worklog::$created is deprecated
- Unable to configure the logger to use a custom handler. HOT 1
- Fatal error on NoOperationMonologHandler::write() HOT 2
- PHP 8.2 support / some properties are still dynamically created HOT 4
- PHP version 8.2.3 Deprecated: Creation of dynamic property JiraRestApi\Issue\IssueType::$entityId is deprecated in ... /vendor/lesstif/php-jira-rest-client/src/JsonMapperHelper.php on line 26 HOT 2
- In PHP 8.2.1, I get several of the following messages: "User Deprecated: Method "JsonSerializable::jsonSerialize()" might add "mixed" as a native return type declaration in the future." HOT 1
- Assignee not being set HOT 3
- Return type wrong after PHP 8.2 fixes
- error "invalid request payload" when create or update project HOT 3
- JSON property "parent" in class "JiraRestApi\Issue\IssueField" must not be NULL HOT 7
- Typed property JiraRestApi\Issue\Reporter::$emailAddress must not be accessed before initialization
- Creation of dynamic property JiraRestApi\Sprint\Sprint::$createdDate is deprecated
- Empty customField HOT 1
- IssueService::getCustomFields() does not get custom fields HOT 1
- HTTP Request Failed: Status Code : 403, "Failed to parse Connect Session Auth Token" HOT 1
- Issue with dynamic property creation (php8.2) HOT 1
- PHPUnit tests are failing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-jira-rest-client.