GithubHelp home page GithubHelp logo

Errer Showing about tmdb_v3-php-api- HOT 16 CLOSED

pixelead0 avatar pixelead0 commented on August 12, 2024
Errer Showing

from tmdb_v3-php-api-.

Comments (16)

bogdanfinn avatar bogdanfinn commented on August 12, 2024 3

@ChrisTERiS
Please Check /examples/movies/infoMovie.php and /examples/tvshows/infoTVShow.php i already created examples for Cast & Crew on both, Movies and TVShows.

@pixelead0 we should close this issue, because it is actually done.

from tmdb_v3-php-api-.

bogdanfinn avatar bogdanfinn commented on August 12, 2024 1

@asifagaria @isarjanfaza @TimTim74 @ChrisTERiS
I pushed a temporary fix for the problem on my fork here:
https://github.com/bogdanfinn/tmdb_v3-PHP-API-

The examples are working if you check out this version and add your TMDB Api Key in the configuration/default.php file. Maybe you have to adjust the config, depending on the data you want to query. There is also a configuration/all.php file.

I think this library is not actively maintained. And to be honest i currently have not enough time to look deeper into the problem and get it fixed with the namespacing. introduced a few commits before.

from tmdb_v3-php-api-.

bogdanfinn avatar bogdanfinn commented on August 12, 2024

Seems like this has something to do with the namespacing and composer.json stuff ...
Will look into it later and try to fix it.

@buibr do you have the same issue when opening the examples?

from tmdb_v3-php-api-.

isarjanfaza avatar isarjanfaza commented on August 12, 2024

hi
I also have a problem with what to do

from tmdb_v3-php-api-.

isarjanfaza avatar isarjanfaza commented on August 12, 2024

Fatal error: Class 'ApiBaseObject' not found in /public_html/tmdb/controller/classes/data/Movie.php on line 12

from tmdb_v3-php-api-.

TimTim74 avatar TimTim74 commented on August 12, 2024

I get the same problem. Even the examples give the same error:

Fatal error: Class 'ApiBaseObject' not found in /var/www/html/projects/tmdb-api/controller/classes/data/Movie.php on line 12

from tmdb_v3-php-api-.

ChrisTERiS avatar ChrisTERiS commented on August 12, 2024

Same fatal error (Class 'ApiBaseObject' not found) not only to Movie.php but to all.
And as it's already 8 full months since the first bug report, seems that nobody is interest to fix it.
If you've abandoned this (very promising) class, is more fair to remove it, respecting the time that someone waste for download, install, and testing it.

from tmdb_v3-php-api-.

bogdanfinn avatar bogdanfinn commented on August 12, 2024

and yeah the error has nothing to do with the class itself.
an important line was removed due to a merge conflict. this line imported the class. that was the actual error ;-)

from tmdb_v3-php-api-.

ChrisTERiS avatar ChrisTERiS commented on August 12, 2024

@bogdanfinn
I'm still getting error when I applied your new code. But maybe I need to double check the files again.
Before your post, I've added at the top of require:
require ("controller/classes/data/ApiBaseObject.php");
but then I was getting error:
Fatal error: Cannot declare class ApiBaseObject, because the name is already in use

from tmdb_v3-php-api-.

ChrisTERiS avatar ChrisTERiS commented on August 12, 2024

Ok, now it works :) Have did so many changes in the code trying to fix it. The best that I had succeeded to get is the example page but without submenus :)
I was so in rush that I post a micro project to Freelancer . com :)

from tmdb_v3-php-api-.

ChrisTERiS avatar ChrisTERiS commented on August 12, 2024

@bogdanfinn Are you getting custom (paid) examples coding of this class?

from tmdb_v3-php-api-.

bogdanfinn avatar bogdanfinn commented on August 12, 2024

@ChrisTERiS glad to read that it works now.
i used this library a long time ago as a base for a private project.

what examples do you need? maybe i could explain how to code it or add them to the repo if i find time.

from tmdb_v3-php-api-.

ChrisTERiS avatar ChrisTERiS commented on August 12, 2024

@ChrisTERiS glad to read that it works now.
i used this library a long time ago as a base for a private project.

what examples do you need? maybe i could explain how to code it or add them to the repo if i find time.

I need an example which will do:
1.- Fetcth data for a Movie or TV Show and save them in a MySQL database
2.- Copy Poster, Backdrop and images to my site
3.- Fetch data for crew (actors) only and save them in database (checking for duplicates).

As you can see, maybe is not a big project, but also is not a project to ask it for free. I want to add it as part of my CMS script. Till now haven't decided if I'll release it for free (95% of my 50+ scripts are fee), if I'll release it as commercial. That's why I want to pay for your time.

In any case, I'm respectful to you for your fix.

from tmdb_v3-php-api-.

TimTim74 avatar TimTim74 commented on August 12, 2024

My solution was to this this repo: https://github.com/femotizo/tmdb_v3-PHP-API-. Maybe not the latest, but it does what I need perfectly.

from tmdb_v3-php-api-.

bogdanfinn avatar bogdanfinn commented on August 12, 2024

@ChrisTERiS
Sorry for the late reply. My Github did not show me any answers to this issue.

I need an example which will do:
1.- Fetcth data for a Movie or TV Show and save them in a MySQL database
2.- Copy Poster, Backdrop and images to my site
3.- Fetch data for crew (actors) only and save them in database (checking for duplicates).

  1. For this we already have examples in this repo i think. Except of the MySQL database part. Personally i would not want to implement examples for the persistence layer because this is a dependency and has nothing to do with this repository (in my opinion). This repository is just about receiving data not storing them in some database. Also it would highly depend on the question if you use plain SQL Statements or an ORM and so on ...
  2. Dont know why you need to copy the images and tbh i'm not sure if you actually are allowed to copy the images. But you can just store the URL to the images?
  3. Same as Answer to 1 i think. There are already examples for "Persons". On a Person you are able to receive the Roles (Movie or TVShow Roles). Nevertheless coming from a Movie or a TVShow you are able to call getCast() on it to receive a List of Person Objects.

from tmdb_v3-php-api-.

ChrisTERiS avatar ChrisTERiS commented on August 12, 2024

from tmdb_v3-php-api-.

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.