Giter Club home page Giter Club logo

Comments (19)

stfrbrntyu avatar stfrbrntyu commented on June 25, 2024 1

UTF8_encode() is also used in:
\vendor\szymach\c-pchart\constants.php
Line 48

from spotweb.

Sweepr avatar Sweepr commented on June 25, 2024 1

UTF8_encode() is also used in: \vendor\szymach\c-pchart\constants.php Line 48

Fix for that has been made in 3.0.16 : szymach/c-pchart@7cbaf0d

from spotweb.

Sweepr avatar Sweepr commented on June 25, 2024 1

Ok, simply remove the use of the function works?
What was supposed to be encoded then?

So it seems, I have no idea, you could ask the creator of the package if you'd like to know.

from spotweb.

Fossil01 avatar Fossil01 commented on June 25, 2024

PHP Deprecated: Creation of dynamic property Services_Retriever_Spots::$_daoFactory is deprecated in /var/www/spotweb/lib/services/Retriever/Services_Retriever_Base.php on line 70

from spotweb.

Hydranet avatar Hydranet commented on June 25, 2024

I'm having this issue(utf8_encode() ) too as well as the deprecated message @Fossil01 shared.

from spotweb.

rayures avatar rayures commented on June 25, 2024

with latest master i am getting:

PHP Deprecated: Function utf8_encode() is deprecated in /app/lib/services/Format/Services_Format_Parsing.php on line 542

from spotweb.

mesa57 avatar mesa57 commented on June 25, 2024

Please use develop branch

from spotweb.

rogierlommers avatar rogierlommers commented on June 25, 2024

I'm using latest development branch, but I still receive this:

PHP Deprecated:  Function utf8_encode() is deprecated in /config/www/vendor/szymach/c-pchart/constants.php on line 48
PHP Deprecated:  Creation of dynamic property Services_Retriever_Spots::$_daoFactory is deprecated in /config/www/lib/services/Retriever/Services_Retriever_Base.php on line 70
PHP Deprecated:  Creation of dynamic property Services_Retriever_Comments::$_daoFactory is deprecated in /config/www/lib/services/Retriever/Services_Retriever_Base.php on line 70
PHP Deprecated:  Creation of dynamic property Services_Retriever_Comments::$_spotDao is deprecated in /config/www/lib/services/Retriever/Services_Retriever_Comments.php on line 16
PHP Deprecated:  Creation of dynamic property Services_Retriever_Comments::$_commentDao is deprecated in /config/www/lib/services/Retriever/Services_Retriever_Comments.php on line 17
PHP Deprecated:  Creation of dynamic property Services_Retriever_Reports::$_daoFactory is deprecated in /config/www/lib/services/Retriever/Services_Retriever_Base.php on line 70
PHP Deprecated:  Creation of dynamic property Services_Retriever_Reports::$_reportDao is deprecated in /config/www/lib/services/Retriever/Services_Retriever_Reports.php on line 13
PHP Deprecated:  Creation of dynamic property Services_Retriever_Reports::$_spotDao is deprecated in /config/www/lib/services/Retriever/Services_Retriever_Reports.php on line 14

from spotweb.

mesa57 avatar mesa57 commented on June 25, 2024

Please ignore those deprecation notices. But thanks voor reporting.

from spotweb.

Sweepr avatar Sweepr commented on June 25, 2024

For all "Deprecated" notices, you could add #[\AllowDynamicProperties] at the beginning of each file to silence the warnings.

Except the first one, that one must be updated using composer as it is an external package.

from spotweb.

rogierlommers avatar rogierlommers commented on June 25, 2024

For all "Deprecated" notices, you could add #[\AllowDynamicProperties] at the beginning of each file to silence the warnings.

Except the first one, that one must be updated using composer as it is an external package.

Can you give me an example of how (and where) to add this here?
https://github.com/spotweb/spotweb/blob/develop/vendor/szymach/c-pchart/constants.php

from spotweb.

Sweepr avatar Sweepr commented on June 25, 2024

PHP Deprecated: Function utf8_encode() is deprecated in /config/www/vendor/szymach/c-pchart/constants.php on line 48 is a different notice.

See: szymach/c-pchart@fbeb077

from spotweb.

rogierlommers avatar rogierlommers commented on June 25, 2024

Ok, simply remove the use of the function works?
What was supposed to be encoded then?

from spotweb.

mesa57 avatar mesa57 commented on June 25, 2024

Not tested, but I think if you deselect this, you will get no messages.
afbeelding

from spotweb.

rogierlommers avatar rogierlommers commented on June 25, 2024

Not tested, but I think if you deselect this, you will get no messages. afbeelding

Nope, I already had that disabled.
Still got the error message.

from spotweb.

mesa57 avatar mesa57 commented on June 25, 2024

Please test the latest from develop branch.

from spotweb.

Hydranet avatar Hydranet commented on June 25, 2024

Please test the latest from develop branch.

After I pull the most recent changes php crashes when doing a retrieve.

]$ /usr/bin/php /data/websites/spotweb/html/retrieve.php


SpotWeb v0.68.35.34 on PHP v8.2.9 crashed

Fatal error occured during retrieve:
  Settings needs to be upgraded.



#0 /data/websites/spotweb/html/lib/Bootstrap.php(68): Bootstrap->validate()
#1 /data/websites/spotweb/html/retrieve.php(12): Bootstrap->boot()
#2 {main}

PHP Warning:  Undefined variable $retriever in /data/websites/spotweb/html/retrieve.php on line 296
PHP Fatal error:  Uncaught Error: Call to a member function quit() on null in /data/websites/spotweb/html/retrieve.php:296
Stack trace:
#0 {main}
  thrown in /data/websites/spotweb/html/retrieve.php on line 296

from spotweb.

mesa57 avatar mesa57 commented on June 25, 2024

You need to execute the bin/upgrade-db.php from the spotweb folder.

from spotweb.

Hydranet avatar Hydranet commented on June 25, 2024

You need to execute the bin/upgrade-db.php from the spotweb folder.

Yeah I forgot to this time since normally my script updates spotweb and I did it manually this time. Yeah tat looks better.

]$ /usr/bin/php /data/websites/spotweb/html/retrieve.php
Removing Spot information which is beyond retention period,, done
Last retrieve: 2023-08-03 19:58:52
Retrieving new Spots from server news.eweka.nl...
Appr. Message count: 	4044978
First message number:	2
Last message number:	4044980
Current article number:	4044978

Retrieving 4044978 till 4044981 (parsed: 2, in DB: 1, signed: 1, invalid: 0, rtntn.skip: 0, mod: 1, full: 0, total: 3) in 0.08 seconds
Processed a total of 3 spots
Finished retrieving spots.

Calculating how many spots are new, done.
Last retrieve: 2023-08-03 20:03:12
Retrieving new comments from server news.eweka.nl...
Appr. Message count: 	19982907
First message number:	2
Last message number:	19982909
Current article number:	19982907

Retrieving 19982907 till 19982910, found 3 comments in 0.15 seconds
Processed a total of 3 comments
Finished retrieving comments.

Last retrieve: 2023-08-03 20:03:13
Retrieving new reports from server news.eweka.nl...
Appr. Message count: 	276402
First message number:	2
Last message number:	276404
Current article number:	276404

Processed a total of 0 reports
Finished retrieving reports.

Thanks @mesa57!!

from spotweb.

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.