• Resolved kayhda

    (@kayhda)


    I am getting the following error when trying to activate the plugin:

    Parse error: syntax error, unexpected ‘const’ (T_CONST), expecting variable (T_VARIABLE) in /home/hdany_com/public_html/subdomains/support.hdanywhere.com/wp-content/plugins/export-all-urls/classes/constants.php on line 8

    I get the same error message even with all other plugins disabled.

    WP version: 3.8.1
    PHP Version: 5.6.40

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Atlas Gondal

    (@atlas_gondal)

    Hi @kayhda,

    The error is because of some compatibility issues between the older version. Please download the last compatible version from this link and it should work fine in your environment.

    Let me know if there is any other issue.

    Thanks

    Thread Starter kayhda

    (@kayhda)

    Hi @atlas_gondal,

    Thank you for the tip – I uninstalled and installed the last compatible version linked above, and that has let me activate the plugin, but now when I go to Tools > Export All URLs, I get a blank page. I wonder if our wordpress version is too old maybe?

    Thanks

    Plugin Author Atlas Gondal

    (@atlas_gondal)

    @kayhda sorry for the late response.
    You are right, the version of the wordpress is too old and there could be some other issues. Please try to locate the server error logs and share with me or grant me access to the website here. I would be happy to investigate the issue.

    Thread Starter kayhda

    (@kayhda)

    Hi @atlas_gondal – no worries at all, I’ve found the error log and the same error seems to be repeating since installing the older version, the error is:

    [25-Feb-2026 09:04:39 UTC] PHP Parse error: syntax error, unexpected ‘)’ in /home/hdany_com/public_html/subdomains/support.hdanywhere.com/wp-content/plugins/export-all-urls/functions.php on line 231

    I’ve also put the full error log in pastebin: https://pastebin.com/QtsAmAq3

    Is this helpful, or will you need access to the server?

    Thank you

    Thread Starter kayhda

    (@kayhda)

    @atlas_gondal I think I fixed that error – there was a comma on line 231 of the functions.php file that was causing the error. Now export all urls is showing correctly in Tools on wordpress, no blank screen.

    However, now when I try to export (as csv or display here), it does not export – I am getting the following error in the server log:

    [25-Feb-2026 09:50:06 UTC] PHP Fatal error:  Call to undefined function map_deep() in /home/hdany_com/public_html/subdomains/support.hdanywhere.com/wp-content/plugins/export-all-urls/extract-all-urls-settings.php on line 494

    Thank you

    • This reply was modified 2 months, 3 weeks ago by kayhda.
    Plugin Author Atlas Gondal

    (@atlas_gondal)

    @kayhda sounds good, if you were able to resolve the issue and it worked inside the dashboard then I would recommend you to export inside the dashboard and use the manual approach to select, copy and paste into excel sheet.

    Also, the map_deep function was introduced in later versions of WordPress, that’s why it is failing on your end.

    Thread Starter kayhda

    (@kayhda)

    @atlas_gondal the only way I could get it to run was to delete the line with the map_deep function on. After I did that, it seems to let me display inside dashboard and also export by CSV, but the export is completely empty both inside the dashboard and on the CSV. It says there are 199 links, but they are empty.

    Do you have an older version we can download without the map_deep function, please? Wondering if that could work

    Many thanks

    Plugin Author Atlas Gondal

    (@atlas_gondal)

    @kayhda the version 4.0 does not use the map_deep function. Please give it a try and I am pretty hopeful that it should work in your environment.

    Thread Starter kayhda

    (@kayhda)

    Hi Atlas,

    That is perfect, thank you – that version is working in our environment 🙂

    Thank you!

    Plugin Author Atlas Gondal

    (@atlas_gondal)

    @kayhda good to hear that but by the way, you do need to upgrade your environment! 🙂

    Thread Starter kayhda

    (@kayhda)

    Thank you @atlas_gondal – we are migrating to a new domain, which is why we wanted the URL exporter to setup redirects, we are planning on using the latest version of wordpress on the new domain 🙂

Viewing 11 replies - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.