Giter Site home page Giter Site logo

Strict Standards error about cliche HOT 14 CLOSED

lossendae avatar lossendae commented on August 18, 2024
Strict Standards error

from cliche.

Comments (14)

lossendae avatar lossendae commented on August 18, 2024

Did you install from scratch ?
I recommend to install the component from scratch until PL is reached since there are some modifications on the SQL table.
If you uninstall Cliche, make sure that the old tables are properly removed since the old components did not have an uninstall hook to remove them.

from cliche.

DragonSigh avatar DragonSigh commented on August 18, 2024

Yes, this is my first installation from scratch of Modx and Cliche. There are no errors during installation except this blue message:

Could not load package metadata for package cliche.

I tried to uninstall it and got this red lines:

Path specified for package cliche is not a valid or accessible directory: C:/xampp/htdocs/modx/core/components/cliche/model/
Could not load class: ClicheAlbums from mysql.clichealbums.
Could not load class: ClicheItems from mysql.clicheitems.

But this directory exist.

Then I drop two Cliche mysql tables and reinstall, but it seems to be the same and error in the first message here again.

from cliche.

lossendae avatar lossendae commented on August 18, 2024

Can you see the following files in the "C:/xampp/htdocs/modx/core/components/cliche/model/" directory

from cliche.

DragonSigh avatar DragonSigh commented on August 18, 2024

There is no such files and folder there ("core/components/cliche/model/")
only in "core/components/cliche/model/cliche/"

from cliche.

lossendae avatar lossendae commented on August 18, 2024

My mistake, there are in the right place.
Can you activate the debug mode ? (Set debug to true on this line in the main class: https://github.com/lossendae/Cliche/blob/master/core/components/cliche/model/cliche/cliche.class.php#L92 )

from cliche.

DragonSigh avatar DragonSigh commented on August 18, 2024

when it activated error dissapears:
http://dl.dropbox.com/u/8107132/screens/cliche_debug_on.jpg

when it set to false:
http://dl.dropbox.com/u/8107132/screens/cliche_debug_off.jpg

error log of modx is empty in both ways.
what next I should do after activation of debug mode?

from cliche.

lossendae avatar lossendae commented on August 18, 2024

When debug is off, can you check your browser console and tell me what does the server response says ?

http://img11.hostingpics.net/pics/352581response.png

from cliche.

DragonSigh avatar DragonSigh commented on August 18, 2024

http://dl.dropbox.com/u/8107132/screens/cliche_console_output.jpg

if I understand you right

from cliche.

lossendae avatar lossendae commented on August 18, 2024

I forgot to mention that I use firebug.
I'm sure your tool can do the same but i don't know it. Do you have firebug intalled ?

from cliche.

DragonSigh avatar DragonSigh commented on August 18, 2024

there is two cliche/connectors.php lines:

(1)


Strict Standards: Redefining already defined constructor for class ClicheAlbums_mysql in C:\xampp\htdocs\decoracryl\core\components\cliche\model\cliche\mysql\clichealbums.class.php on line 10

Strict Standards: Redefining already defined constructor for class ClicheItems_mysql in C:\xampp\htdocs\decoracryl\core\components\cliche\model\cliche\mysql\clicheitems.class.php on line 10
{"success":true,"total":0,"results":[]}

(2)


Notice: Undefined index: album in C:\xampp\htdocs\decoracryl\core\components\cliche\processors\mgr\album\getlist.php on line 4

Strict Standards: Redefining already defined constructor for class ClicheItems_mysql in C:\xampp\htdocs\decoracryl\core\components\cliche\model\cliche\mysql\clicheitems.class.php on line 10

Strict Standards: Redefining already defined constructor for class ClicheAlbums_mysql in C:\xampp\htdocs\decoracryl\core\components\cliche\model\cliche\mysql\clichealbums.class.php on line 10

Fatal error: Call to a member function toArray() on a non-object in C:\xampp\htdocs\decoracryl\core\components\cliche\processors\mgr\album\getlist.php on line 50

from cliche.

lossendae avatar lossendae commented on August 18, 2024

Can you try the last commits from this repo ?

from cliche.

DragonSigh avatar DragonSigh commented on August 18, 2024

Thanks! The error dissapeared.
But in firebug remains this lines:


Notice: Undefined index: album in C:\xampp\htdocs\decoracryl\core\components\cliche\processors\mgr\album\getlist.php on line 4

Fatal error: Call to a member function toArray() on a non-object in C:\xampp\htdocs\decoracryl\core\components\cliche\processors\mgr\album\getlist.php on line 50

Maybe it because I manual deleted the two mysql tables & reinstalled Cliche?
What is the proper way for me to reinstall it right now?

from cliche.

lossendae avatar lossendae commented on August 18, 2024

I just pushed somes changes, can you try them ?

from cliche.

DragonSigh avatar DragonSigh commented on August 18, 2024

Thank you very much for your attention, all issues completely gone.
Cheers!

from cliche.

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.