Skip to content

Many provider examples are not working #587

@goldingdamien

Description

@goldingdamien

Many providers in the example page are not working.
For example: http://localhost:8000/provider/twitter.php

The following warnings/errors are outputted:
Warning: require_once([MY_DIR]\PHPoAuthLib\examples\provider/bootstrap.php): failed to open stream: No such file or directory in[MY_DIR]\PHPoAuthLib\examples\provider\twitter.php on line 20

Fatal error: require_once(): Failed opening required '[MY_DIR]\PHPoAuthLib\examples\provider/bootstrap.php' (include_path='.;C:/laragon/etc/php/pear') in [MY_DIR]\PHPoAuthLib\examples\provider\twitter.php on line 20

Not Working:
https://github.com/daviddesberg/PHPoAuthLib/blob/master/examples/provider/twitter.php#L20
require_once __DIR__ . '/bootstrap.php';

Working:
https://github.com/daviddesberg/PHPoAuthLib/blob/master/examples/provider/google.php#L10
require_once __DIR__ . '/../bootstrap.php';

It seems that "/.." is required but not used in many cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions