Jump to content

zoeck

Members
  • Posts

    382
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by zoeck

  1. You should make sure that you are using a new PHP version.
    PHP 5.5 has been end of life for a very long time (Ended 7 years ago - 21 Jul 2016)!

    Processwire should currently be used with PHP 8.1, if not otherwise possible 7.x would also be ok.

    2 hours ago, jameswillams said:

    Also checked with another link where it's mentioned PHP 7

    https://processwire.com/about/requirements/

    These are the current requirements, apparently it was not updated at the installation site  😉 

  2. Use something like this:

    <?php wireIncludeFile($page->type_menu); ?>	

    What exactly do you have in the "type_menu" field?

    You have to make sure that only your desired files can be accessed/included!


    Perhaps it is also better to map this via a switch/case - perhaps an if is enough:

    <?php
    if($page->type_menu == "menu-A")
    {
      wireIncludeFile('styles/menu-A.php');
    }
    else
    {
      wireIncludeFile('styles/menu-B.php');
    }
    ?>

     

    • Like 3
  3. On 6/18/2023 at 1:46 AM, Sebi said:

    The overview page has a button to auto-generate an OpenAPI 3.0.3 json, that can be imported in tools like Postman or Swagger.

    I have one more small suggestion to improve the function a bit 🙂 

    Just replace the complete if inside the execute-endpoints.php file:

    if ($action === 'action-get-openapi') {
    [...]
    }

    With this:

    if ($action === 'action-get-openapi') {
    	header('Content-Type: application/json; charset=utf-8');
    	echo json_encode($openApiOutput, JSON_PRETTY_PRINT + JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE + JSON_UNESCAPED_LINE_TERMINATORS);
    	die();
    }

    So Tracy is disabled on output and via the browser you can save the file directly as json.

     

    And Thanks for this nice update 🙂 @Sebi

    • Like 1
    • Thanks 1
  4. 26 minutes ago, ryan said:

    @zoeck Just ".Modules" and not ".Modules.info"  ? in 3.0.218+ there should be rows with these names:

    .Modules.info
    .ModulesVerbose.info
    .ModulesUninstalled.info
    .ModulesVersions.info
    .Modules.site/modules/
    .Modules.wire/modules/

    Found 1 module(s) missing file: .Modules.wire/modules/ => /site/modules/.Modules.wire/modules//.Modules.wire/modules/.module

    And I can already see my problem, I downgraded to 3.0.217 due to another bug.
    After that, the problem occurred, just as you wrote, because .217 does not need this entry.

    In the meantime, I have updated to .219, where the entry was created again. Without error message.

    • Like 1
  5. 8 hours ago, wbmnfktr said:

    Just dropped the latest/3.0.219 into a local dev instance and was greeted with this:

    I had the same problem with 3.0.218. I had to delete the module ".Modules" in the modules table in the database. After that, the error was gone.
    Thought this was only a local problem 😉 

    • Like 3
  6. 3 hours ago, joe_g said:

    Or is there some other upgrade option?

    You can renew the ProFields for $39 -> Manage Purchases

    If there is no "Renew Now" button there, you will need to contact Ryan first. (this is what Ryan wrote here)

      

    2 hours ago, Jan Romero said:

    You can also get the “subscription” where you pay a heavily discounted yearly renewal.

    It's not a subscription at all, it just extends the updates by 1 year 😉 

×
×
  • Create New...