saguaros
Hi! I have updated the template and turn to PHP8. But there still is an Error:
"Call to undefined function each()"

Call stack

Function Location

1 () JROOT/templates/corpway/vertex/compression/class_css_and_js_compression.php:5221
2 CssMin::initialise() JROOT/templates/corpway/vertex/compression/class_css_and_js_compression.php:5407
3 include_once() JROOT/templates/corpway/vertex/compression/top_css_and_js_compression.php:7
4 require() JROOT/templates/corpway/vertex/includes/vertex_includes_header.php:112
5 require_once() JROOT/templates/corpway/index.php:24
6 require() JROOT/libraries/src/Document/HtmlDocument.php:678
7 Joomla\CMS\Document\HtmlDocument->loadTemplate() JROOT/libraries/src/Document/HtmlDocument.php:740
8 Joomla\CMS\Document\HtmlDocument->
fetchTemplate() JROOT/libraries/src/Document/HtmlDocument.php:555
9 Joomla\CMS\Document\HtmlDocument->parse() JROOT/libraries/src/Application/CMSApplication.php:1098
10 Joomla\CMS\Application\CMSApplication->render() JROOT/libraries/src/Application/SiteApplication.php:778
11 Joomla\CMS\Application\SiteApplication->render() JROOT/libraries/src/Application/CMSApplication.php:231
12 Joomla\CMS\Application\CMSApplication->execute() JROOT/index.php:49

UPDATE: The Error is when I turn on the "Enable JS Compression" in the Template!

    DSTG Could you share the URL + super admin + FTP account of your site? I will check directly for you.

    I updated this file on your site: /templates/corpway/vertex/compression/class_css_and_js_compression.php

    class-css-and-js-compressionphp.zip
    27kB

    Kindly check.

      This message is visible to Moderators only
      hidden content

        webcentric I see both frontend and backend of your site is working fine now, could you share the issue in details?

          saguaros

          The issues are the same as above. When I migrate to J4 the admin sides works, the front end does not.

          I have tried several times to migrate with out 100% success.

          If you want me to migrate to J4 and leave once I get there I can. Please let me know what you want me to do to
          help you resolve the issue.

          I have gone through the J4 check list. It seems as though I have done what is needed.

          Thank you.

            webcentric

            You can backup your site first >> migrate and let me know if the issue still persists, I will check for you.

            Share the FTP account also.

              I have backed up the site several times. I have brought everything from what I can tell up to date or eliminated it from mods and plug ins. I removed the S5_Flex menu upon migration, the front side did not work, I installed the latest version of the flex menu and it still doesn't work.

              I have migrated the site, the admin side seems to work fine. The front side gives 2 errors. Both screen shots attached.

              So yes the issue still persists. I'm sure its something minor (maybe not).

              Thank you for your help.

              pepsyfantah

              Thank you. I have previously uploaded both the vertex php 8x ver 1 1 and vertex_php8x files.

              I have gone back and forth btw the latest php 7 versions and php versions to no avail. It is acting as if it is
              some type of php issue, however I can't figure it out.

              Thank you.

              5 days later

              saguaros

              I have done what you have asked and the issue still persists. The front end has crashed and the admin side is fine.

              This is what the front end looks like.

              0 - Call to undefined method Joomla\CMS\Factory::getURI()

              You may not be able to visit this page because of:

              an out-of-date bookmark/favourite
              a search engine that has an out-of-date listing for this site
              a mistyped address
              you have no access to this page
              The requested resource was not found.
              An error has occurred while processing your request.

              Please try one of the following pages:

              Home Page

              If difficulties persist, please contact the website administrator and report the error below.

              Call to undefined method Joomla\CMS\Factory::getURI()

              Please suggest. Thank you,

                4 days later

                saguaros

                I have updated these files - vertex php 8x ver 1 1 and vertex_php8x files.

                Can you use the file manger? I sent you an access invite.

                Thank you.

                  I have the same issue with my site liesbethbakker.com. On PHP8 it gives error 0 - The (real) cast has been removed, use (float) instead.

                  I updated vertex updater and also class_css_and_js_compression.php
                  parameters.php s5_vertex_addons-min.php andtop_css_and_js_compression.php.

                  still no luck.

                  Can you please help me solve this?

                    bliz22 You should install the latest version of template. If you have issue, pls submit a new topic and share the login info.

                    8 days later
                    You need to Login to view replies.