-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There isn't Print section in admin console #68
Comments
Hi @Intelligent2013, I can't reproduce your issue. I'm thinking about the permission issue. Can you please download the plugin from https://wordpress.org/plugins/eight-day-week-print-workflow/ and install it manually to see if it fixes your issue? If the method above doesn't work, can you try setting |
Hi @dinhtungdu thank you for your quick answer.
I've downloaded eight-day-week-print-workflow.1.1.2.zip and installed it via 'Upload plugin', and activated - no success, again there isn't 'Print' section.
In wp-config.php I've set:
and repeated all steps for reactivate the plugin. No errors or messages. Then deleted it and installed again - no errors or messages. May be there is some non compatibility between my PHP version 7.3.27 and plugin requirements? What is PHP version do you installed? |
@Intelligent2013 I'm using PHP 7.3.11 for my localhost and EDW works as expected for me. |
I've installed AMPPS package - the same issue. But looks like I've found an issue in the code. function edw_bootstrap() {
$map = edw_build_namespace_map();
if ( ! $map ) {
return;
}
$core_file = EDW_INC . 'functions/core.php';
if( ! isset( $map[ $core_file ] ) ) {
return;
} In my environment (Windows 7 64-bit)
Please note, it contains I've changed to |
Hi @Intelligent2013, can you please test this branch to check if it fixes your issue? https://github.com/10up/eight-day-week/tree/fix/windows-loading-issue |
Hi @dinhtungdu,
Therefore, $core_file = EDW_INC . 'functions/core.php'; should be replaced by: $core_file = str_replace( "\\", "/", EDW_INC . 'functions/core.php' ); also. After that I see 'Print' section at left pane, but looks like some functions still unavailable. Especially, I can't find how to export as xml to InDesign feature: |
Actually wrong way round for / and \ in str_replace for core.php $core_file = EDW_INC . 'functions/core.php'; this gets the core loaded but also required is a change on ~ line 142 to get the subdirectory / str_replace correct to gather the plugin file namespaces $sub_directory = str_replace( $dir . '/', '', $path ); |
@samthinkbox
This variant is working for me (Windows) define( 'EDW_PATH', dirname( __FILE__ ) . '/' );
define( 'EDW_INC', EDW_PATH . 'includes/' ); to: define( 'EDW_PATH', dirname( __FILE__ ) . '\\' );
define( 'EDW_INC', EDW_PATH . 'includes\\' ); from: $core_file = EDW_INC . 'functions/core.php'; to $core_file = str_replace( "/", "\\", EDW_INC . 'functions/core.php' ); from: $sub_directory = str_replace( $dir . '/', '', $path ); to: $sub_directory = str_replace( $dir . '\\', '', $path ); but I didn't test it on *nix platforms. |
I think I had a similar issue: EDW wasn't working on my windows system. I fixed it in my fork here: mnelson4@bafe75a |
Hi @mnelson4, it's a great fix! Do you mind creating a PR to fix this issue? |
Sure #73 |
I've tried to install plugin v.1.1.2 on WordPress v.5.7.1, v.5.6.2, 5.5.4, 5.5 and 5.4.2 and can't find the section 'Print'
Steps to Reproduce
Expected behavior
Screenshots
![image](https://user-images.githubusercontent.com/5559926/115954232-824f1e80-a4f8-11eb-90c5-7368edc91bc0.png)
Environment information
The text was updated successfully, but these errors were encountered: