1
masel
What can replace eval() in /class/cache/file.php ?
  • 2016/11/23 17:17

  • masel

  • Friend of XOOPS

  • Posts: 34

  • Since: 2004/10/6


I have error
ParseErrorsyntax errorunexpected 'mytheme' (T_STRING), expecting ')' in file /class/cache/file.php(221) : eval()'d code line 9646


Page write "A problem has occurred on our server! ...", site is down.

Error disappears after a cache clearing (/xoops_data/caches/xoops_cache), but it appears again several days later. Code is responsible for read cache.

Possible problem in the template, but it appeared after upgrade server and XOOPS to 2.5.8.

Function eval() considered dangerous. How to replace it?

2
Mamba
Re: What can replace eval() in /class/cache/file.php ?
  • 2016/11/23 22:53

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


I suspect, it's more of a problem with the template itself.

What theme are you using?

Also, when does it happen? With every module, or only with particular one? If only with one, then the module's template could have a problem...

But I'll ask Richard to look into it, as he is more technical than me
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
masel
Re: What can replace eval() in /class/cache/file.php ?
  • 2016/11/25 12:01

  • masel

  • Friend of XOOPS

  • Posts: 34

  • Since: 2004/10/6


Error disappears after removal of the file in folder /xoops_trust_path/xoops_data/caches/xoops_cache/xoops_09f99dcc_wurfl_user_agents.php

Probably guilty module WURFL 2.1 stable (for mobile). I have XOOPS 2.5.8.

This cache file is created when is created when module Preferences set "Yes' in "Post Loader" (This enables and disallows the post loader!).

4
Mamba
Re: What can replace eval() in /class/cache/file.php ?
  • 2016/11/26 21:03

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
This cache file is created when is created when module Preferences set "Yes' in "Post Loader" (This enables and disallows the post loader!).

I don't know the program so it's hard for me to tell you.

Normally what I would do is to try to set the "Post Loaders" to "No", and see if it works. If it works, then I would leave and move on.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Login

Who's Online

152 user(s) are online (83 user(s) are browsing Support Forums)


Members: 0


Guests: 152


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits