Page Not Found (Creating a simple package)

  • The page.xml is wrong.


    Line 4, the page identifier in your package is ir.woltlab.sample. It must be ir.woltlab.sample.Test and contain the name of the page.


    See: https://docs.woltlab.com/package_pip_page.html#example

    Thanks but when I uninstall package I get this error:

  • You include the files and templates folders itself.


    Please create the archive files.tar and add the contents of the files/* directory, but not the directory files/ itself. Repeat the same process for the templates directory, but this time with the file name templates.tar. Place both files in the root of your project.

  • $pageIdentifier must match the name of a page specified in a page.xml (read: internal name, such as com.woltlab.wcf.MembersList.


    Also you should avoid setting breadcrumbs manually, instead specify the <parent> page (see https://docs.woltlab.com/package_pip_page.html#parent) in your page.xml, it will automatically generate the breadcrumbs for you.


    Manual breadcrumbs are only useful if you're trying to mirror a complex structure of dynamic objects, such as the parent forums of a thread that cannot be derived from the page definition.

    Alexander Ebert
    Senior Developer WoltLab® GmbH

  • $pageIdentifier must match the name of a page specified in a page.xml (read: internal name, such as com.woltlab.wcf.MembersList.


    Also you should avoid setting breadcrumbs manually, instead specify the <parent> page (see https://docs.woltlab.com/package_pip_page.html#parent) in your page.xml, it will automatically generate the breadcrumbs for you.


    Manual breadcrumbs are only useful if you're trying to mirror a complex structure of dynamic objects, such as the parent forums of a thread that cannot be derived from the page definition.

    Thanks

    But in document there is no example I get this error:

    • Error Type:

      wcf\system\exception\SystemException

    • Error Message:

      Unknown parent page 'Test Page' for page identifier 'ir.woltlab.sample.Test'

    my page now is:

  • <parent> must be an identifier itself, e.g. <parent>com.woltlab.wcf.MembersList</parent>

    Thanks

    Now page.xml is:



    I get this error:

    • Error Type:

      wcf\system\exception\SystemException

    • Error Message:

      Unknown parent page 'ir.woltlab.sample.TestPage' for page identifier 'ir.woltlab.sample.TestPage'

  • This can't work, because you can't assign the page itself as the parent. It's basically like pretending to be your own father, that just doesn't work ;)

    Alexander Ebert
    Senior Developer WoltLab® GmbH