Topic on Extension talk:TimedMediaHandler

Missing or misplaced files

7
85.80.205.112 (talkcontribs)

I'm getting the following error: Failed opening required 'File/Ogg.php' being thrown from extensions/TimedMediaHandler/handlers/OggHandler/OggHandler.php on line 12.

There's a folder called File in the PEAR subfolder, which contains the Ogg.php. However, changing the line of code to that (or copying the File directory and placing it in the OggHandler folder) will then get a new error thrown:

Failed opening required 'PEAR.php' from extensions/TimedMediaHandler/handlers/OggHandler/File/Ogg.php on line 114.

Any ideas?

Thannks. Peter.

Andreas Plank (talkcontribs)

If you have installed the php-pear package (or whatever the PHP pear packe is named) and this error still occours, than PHP does not find the PEAR.php file from the php-pear package. Make sure that PEAR is found. Check the include_path in php.ini

My solution was to add include_path=".:/usr/share/php5/PEAR/" to my php.ini

RigganRose (talkcontribs)

Can you provide a detailed, simplified walkthrough on how to get Pear installed and configured properly so the TimedMediaHandler extension functions correctly? I have read a ton of info and instructions, and I am still at a loss on what to do. My media extension refuses to work. All I need to do is get the embed player to appear inside the Template:Listen box.

Andreas Plank (talkcontribs)

Difficult to provide details from your vague “how to get Pear installed and configured properly” (what system, architecture, environment?). I cannot guess what help you exactly need to succeed in installing and configuring. Regarding Pear installation generally:

  • just follow the official instructions step by step, documented on http://pear.php.net
  • if you have a software manager that provides Pear as well then you can try to use a package instead that is offered by your distribution. But again: follow official instruction. I'm confident, they are out there ;-)
RigganRose (talkcontribs)
Version Info
MediaWiki 1.24.1
PHP 5.4.37 (cgi-fcgi)
MySQL 5.1.56-log
Lua 5.1.5

(Windows)

I will kindly state it again; I have read a ton of info and instructions, and I am still at a loss on what to do. I have tried to follow the instructions, with your added emphasis on follow, at the link you provided. I've also spent hours trying to sort out the instructions on the TimedMediaHandler page. Have tried (and tried). There are too many gaps of unexplained details, otherwise I would've never resorted to spending three days asking questions on forums and support pages where the common reply is typically: follow the instructions.

I can understand your reluctance to provide a walkthrough, as Pear seems to be quite the headache in common consensus.

Here's another question I've tried asking people but have yet to receive a response:

Is there another media extension that would work? All I want to do is embed a short audio clip in the Listen box. That's it. All the severe gas I'm getting in dealing with this Pear nightmare seems a bit overkill for what I need. I have tried other extensions and have gotten them to work (easily), but so far, have not figured out a way to actually get the player embedded inside the listen box which is the ultimate goal.

Andreas Plank (talkcontribs)

Hi, as you stated you have read a lot, OK we now know twice, but that‘s not your real issue. You want PEAR to be installed on Windows then use or check out for a fitting subject thread, be precise and detailed in providing error messages, warnings etc. so that people can help you most. We want to help you on this—that‘s the purpose of these forums—but telling the issue just vague is not effective.

  1. I don't know how to install PEAR on Windows—so I can't help you here. And this very issue is probably misplaced here in the thread “Missing or misplaced files”. You know what I mean. You haven’t got to the step that PEAR is already installed and working, you know. There is a German documentation page to install PEAR on Windows 7 and PHP 5.4 but it also states that it is difficult and is a complicated installation by hand :-/. To understand those pages you can try to use machine translation services that translate URLs.
  2. The other issue is configuring Extension:TimedMediaHandler but you are not there yet. If you get thee same error messages as above in this thread then my solution might bring you closer to the solution, if you have other error messages that are totally not related to this thread than check it out or open a new thread.
  3. Is there another media extension that would work?

That‘s (almost) all I can help you with.

RigganRose (talkcontribs)

Yes, I stated it twice. I typically do this when I initially state I've read the instructions but am confused, and someone replies and tells me to follow the instructions. In that instance I feel it should be asserted again, and seemingly effectively so, for despite your attempt to paint the gesture as frivolous, this time you've responded with an actual link to info I've not yet seen, and I thank you. That's easily further than I've gotten in days of rewriting/rephrasing the issue on various outlets.

Thanks.

Reply to "Missing or misplaced files"