Coder Social home page Coder Social logo

Comments (11)

lesstif avatar lesstif commented on June 12, 2024

What version of PHP and php-jira-rest-client package are you using?

from php-jira-rest-client.

matiasmenker avatar matiasmenker commented on June 12, 2024

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.

lesstif avatar lesstif commented on June 12, 2024

are your inserted require 'vendor/autoload.php'; statement at top of the code. ?

from php-jira-rest-client.

matiasmenker avatar matiasmenker commented on June 12, 2024

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.

lesstif avatar lesstif commented on June 12, 2024

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.

matiasmenker avatar matiasmenker commented on June 12, 2024

$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.

matiasmenker avatar matiasmenker commented on June 12, 2024

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.

matiasmenker avatar matiasmenker commented on June 12, 2024

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 :

<title>Unauthorized (401)</title> <script type="text/javascript">var contextPath = '';</script> <script> window.WRM=window.WRM||{};window.WRM._unparsedData=window.WRM._unparsedData||{};window.WRM._unparsedErrors=window.WRM._unparsedErrors||{}; WRM._unparsedData["com.atlassian.plugins.atlassian-plugins-webresource-plugin:context-path.context-path"]="\"\""; WRM._unparsedData["jira.webresources:feature-flags.feature-flag-data"]="{\"enabled-feature-keys\":[\"jira.plugin.devstatus.smartcommits.dvcs.enabled\",\"nps.survey.inline.dialog\",\"rotp.admin.shortcuts\",\"com.atlassian.jira.projects.issuenavigator.cachefix\",\"jira.plugin.devstatus.phasetwo\",\"jira.frother.reporter.field\",\"atlassian.rest.xsrf.legacy.enabled\",\"jira.administration.workflow.validation\",\" ondemand.la in /opt/lampp/htdocs/vendor/lesstif/php-jira-rest-client/src/JiraClient.php on line 201

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.

lesstif avatar lesstif commented on June 12, 2024

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.

matiasmenker avatar matiasmenker commented on June 12, 2024

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.

lesstif avatar lesstif commented on June 12, 2024

you need create .env file and setting jira credential info into it.

from php-jira-rest-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.