Comments (12)
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.
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.
Are the files RainTPL.php and purgelimiter.php readable in the lib folder? The error indicates, that these classes weren't loaded.
from privatebin.
@elrido: yes, they are readable and owned by the correct user.
from privatebin.
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.
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.
Does the error log posted just before your response help?
from privatebin.
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.
The only thing which is seemingly not working is the syntax highlighting:
https://p.k0nsl.org/?a1c9b8da18108e52#P7xJafjtMZ73XAmmpteNEPLE8ZxPPiFiX1ryte3zgY0=
from privatebin.
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.
The HTML encoding issue was recently introduced with the preview feature (#4).
from privatebin.
@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)
- In version 1.7.2, the user-selected expiration is ignored HOT 5
- End-to-end testing with PHP backend and JS Frontend
- Improve JS (Frontend) unit testing coverage HOT 13
- Could not create paste: Error saving paste. Sorry. (1.7.2 and later) HOT 7
- bs5 feedback HOT 8
- "Dark mode" toggle in Bootstrap 5 theme is not syncronised with prefers-color-scheme at start (when dark)
- Default Content-Security-Policy blocks bootstrap5 icons HOT 1
- Error saving paste. Sorry. since 1.7.3 (database storage) - don't forget to reset your table paste HOT 1
- Bootstrap(5) and footer feedback (textarea height) HOT 1
- Wrong translation for Norwegian popup HOT 1
- BS5 light-mode as source is hard to read HOT 2
- Change separator # by another character HOT 2
- Bootstrap-dark has ugly style for 'source code' format HOT 3
- pgsql: crash when serice account do not have SELECT right on `pg_catalog.pg_user` HOT 3
- Icons not showing on Firefox when using bootstrap5 HOT 2
- Injecting the SRI via template variables instead of hardcoding them into the templates
- Unable to customise the expiration times except the default ones HOT 2
- Replace usage of strpos with str_starts_with etc.
- Message not shown when attachment is present HOT 2
- Accessibility issues: Focus trapped in textarea, labels for form controls, focus order for "Create" should be last HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from privatebin.