GithubHelp home page GithubHelp logo

Comments (12)

elrido avatar elrido commented on August 16, 2024

Can you send us the error message found in your webserver / PHP log? Are you using privatebin_db or privatebin_data model? If the latter: Is your data directory writable?

from privatebin.

k0nsl avatar k0nsl commented on August 16, 2024

It's the latter and yes the data directory is writable. I actually had the project running fine for a week or so until I pulled some of the new code from the repo today.
This is the most recent entries in the error log:

[18-Jul-2016 10:01:17 UTC] PHP Fatal error:  Uncaught Error: Class 'RainTPL' not found in /home2/zerobin01/public_html/lib/privatebin.php:425
Stack trace:
#0 /home2/zerobin01/public_html/lib/privatebin.php(154): privatebin->_view()
#1 /home2/zerobin01/public_html/index.php(16): privatebin->__construct()
#2 {main}
  thrown in /home2/zerobin01/public_html/lib/privatebin.php on line 425
[18-Jul-2016 10:06:22 UTC] PHP Fatal error:  Class 'RainTPL' not found in /home2/zerobin01/public_html/lib/privatebin.php on line 425
[18-Jul-2016 10:08:35 UTC] PHP Fatal error:  Class 'purgelimiter' not found in /home2/zerobin01/public_html/lib/model.php on line 65

from privatebin.

elrido avatar elrido commented on August 16, 2024

Are the files RainTPL.php and purgelimiter.php readable in the lib folder? The error indicates, that these classes weren't loaded.

from privatebin.

k0nsl avatar k0nsl commented on August 16, 2024

@elrido: yes, they are readable and owned by the correct user.

from privatebin.

k0nsl avatar k0nsl commented on August 16, 2024

Now I am getting further:

[18-Jul-2016 13:58:10 UTC] PHP Warning:  forward_static_call() expects parameter 1 to be a valid callback, class 'privatebin_data' not found in /home2/zerobin01/public_html/lib/model.php on line 84
[18-Jul-2016 13:58:10 UTC] PHP Catchable fatal error:  Argument 2 passed to model_abstract::__construct() must be an instance of zerobin_abstract, null given, called in /home2/zerobin01/public_html/lib/model.php on line 84
[18-Jul-2016 14:00:07 UTC] PHP Warning:  forward_static_call() expects parameter 1 to be a valid callback, class 'privatebin_data' not found in /home2/zerobin01/public_html/lib/model.php on line 84
[18-Jul-2016 14:00:07 UTC] PHP Catchable fatal error:  Argument 2 passed to model_abstract::__construct() must be an instance of zerobin_abstract, null given, called in /home2/zerobin01/public_html/lib/model.php on line 53 and defined in in /home2/zerobin01/public_html/lib/model/abstract.php on line 60

from privatebin.

elrido avatar elrido commented on August 16, 2024

Sorry, then I am at a loss. :-(

I can't reproduce your issue on my test instance with PHP 5.6 and all the unit tests on PHP 7 indicate it is working, too. You need to figure out why these two files aren't included.

[...] instance of zerobin_abstract [...]

This would indicate, that the wrong class is loaded. Is the folder lib/zerobin still around? If yes, please delete it.

from privatebin.

k0nsl avatar k0nsl commented on August 16, 2024

Does the error log posted just before your response help?

from privatebin.

k0nsl avatar k0nsl commented on August 16, 2024

I "solved" it by deleting all the RainTPL functions in my template, as I don't really need those anyway.

It's working fine now!

Test: https://p.k0nsl.org/

😁

from privatebin.

k0nsl avatar k0nsl commented on August 16, 2024

The only thing which is seemingly not working is the syntax highlighting:

https://p.k0nsl.org/?a1c9b8da18108e52#P7xJafjtMZ73XAmmpteNEPLE8ZxPPiFiX1ryte3zgY0=

from privatebin.

k0nsl avatar k0nsl commented on August 16, 2024

Sorry for the flood of comments. I just wanted to say that I had to disable syntax highlighting as it would actually parse both HTML and PHP which made it very dangerous. I don't understand how that could be possible.

[UPPDATE: I have managed to get syntax highlighting to nominally work; it only works if you omit any opening and closing tags, etc,.
For example, a paste cannot include <?php somecode ?>, it can only be somecode. The same is true for HTML.
Here is an example paste: https://p.k0nsl.org/?4f43ed2e255f6eeb#FJpr4lnSj6hZJm+e31Jg/fY0jkm9OkspjTRHH2SxM/8=
At any rate, it appears I'm "getting somewhere" at last ;)

from privatebin.

elrido avatar elrido commented on August 16, 2024

The HTML encoding issue was recently introduced with the preview feature (#4).

from privatebin.

rugk avatar rugk commented on August 16, 2024

@k0nsl Just FYI: It is not necessary to change the title when an issue is solved. We already close issues when they are resolved. 😃

from privatebin.

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.