- NewsmagRequirements for Newsmag
Hello,
My localhost webserver for developing is on:
WinNMP on Windows 10 with NGINX + PHP 7.2.4.
Into the PHP.ini file I have this:
open_basedir = "C:/"
This is the warning I get loading the website:
Warning: file_exists(): open_basedir restriction in effect. File(C:\Dev\Workspace\trasporto/wp-content/themes/trasporto-childC:\Dev\Workspace\trasporto\wp-content\plugins\td-social-counter/shortcode/td_block_social_counter.php) is not within the allowed path(s): (C:/) in C:\Dev\Workspace\trasporto\wp-content\themes\Newspaper\includes\wp_booster\td_api.php on line 370
The private static function locate_the_file($id = ”) on td_api.php should let the plugins to register themselves paths, but I receive this error and on the row 368 I have:
$child_path = STYLESHEETPATH . str_replace(TEMPLATEPATH, '', $the_component['file']);
I don’t know is a bug of this code, or I have something on the database that is wrong.
VERY IMPORTANT: I can’t re-install everything from a clean installation because the website is on production.
Could you help me to understand why I get this kind of error and in which way I can solve the problem?
Thanks,
Michele Falconi
Hi @soaresrey,
This is caused by lacking of php-xml extension. You show install it on your server and restart apache or php-fpm ( if your are using nginx ). Hope this helps!
I am getting the same error.
I have tried deleted and re-installed TagDiv Composer & Multi-purpose plugin. But it is still throwing the error –
502 bad gateway” with “nginx” under it.
How to resolve this error?
Hi,
I’m using mobile theme, but there’s some problem when I use page caching. (I use Fastcgi_cache with Nginx)
If I enable the cache, the mobile theme will not show up. It shows original mobile layout instead.
But if I cached mobile theme first, the desktop version is gone, vice versa.
Is there any solution? Thank you!
Buna ziua,
Va felicit pentru aceasta tema.
Am un site wordpress cu tema Newspaper v8.7.2
Problema: Se incarca greu paginiile.
Folosesc VPS ubuntu 16 ( nginx, php-fpm7.1, mariadb, redisCache) + Cloudflare
Link: https://www.lowcarbspark.com/easy-keto-waffles-coconut-flour/
Nu stiu ce sa mai optimizez incat sa am o viteza de incarcare mai mica. Ce pot face?
Va multumesc mult si astept raspuns!
Hi, I’m having a problem with TD Composer. Every I click on “Edit with TD Composer”, it appears “502 bad gateway” with “nginx” under it. What can I do to solve this problem?
Salut!
Am upgradat la 8.7 (am reinstalat plugin-urile tdcomposer si social counter, singurele care le folosesc) fiindca nu mai aparea homepage – dupa reinstalare a reaparut homepage.
Probleme folosire site pentru utilizatorii autentificati:
– pentru admin meniul de la themepanel functioneaza rapid.
– pentru admin / editor / contributor – dureaza intre minim 30 secinde si 45 secunde sa accesezi orice meniu (toate articolele, adauga articol, media, adauga pagina, toate paginile, etc – orice meniu WordPress).
Testat in Firefox si Chrome (in Chrome in 50% din situatii primesti white screen la accesare orice meniu, dupa refresh si 45 secunde incarca totusi pagina, neacceptabil la ce server detinem si la cum ne functioneza alte website-uri).
Uneori (sporadic) in admin area in consola sunt urmatoarele erori:
https://postimg.org/image/ga5b27y97/
care la Read more te duc la mixed content:
https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content
Folosim:
https
server dedicat (liber 60 GB ram)
SSD / I7 / PHP 7 (php-fpm) / MariaDB / WHM /cPanel up2date
WP Memory Limit: 256 MB/request
Theme panel system status – all recommended (toate verzi)
Doar plugin-uri recomandate
Doar tdcomposer si social counter instalate dintre plugin-urile voastre
Cache curatat / dezactivat (aceiasi problema).
Ce am facut:
Am rezolvat mixed content prin inlocuire globala in database http cu https (timp greu de incarcare persista si dupa inlocuire).
Am optimizat baza de date (lucrez cu WordPress de peste 8 ani)
Am incercat browserele Firefox si Chrome – timp reincarcare foarte mare persista
Am dezactivat si sters orice alt plugin – timp reincarcare foarte mare persista
Am optimizat baza de date – timp reincarcare foarte mare persista
Am testat pe mai mult de 2 PC-uri super tari / 2+ PROVIDERI DE INTERNET DIFERITI – aceiasi problema pt utilizatorii autentificati.
Am schimbat temporar tema Newpaper cu alta tema (Divi si default teme WP) – toate meniurile functioneaza foarte rapid (0.01 secunde) – deci clar Newspaper este problema!
Credeti-ma ca nu se poate lucra asa, ne-au sunat editorii ca nu mai functineaza, le-am explicat ca incarca mai greu site-ul, unii spun ca au white screen (oamenii sunt redactori nu experti pe partea de IT, ei nu inteleg ca merge foarte greu).
Va rog gasiti un patch sau explicati-mi cum sa rezolv timpul greoi de incarcare orice meniu WordPress – de cand upgrade la 8.7!
Sincer: In productie nu sunt acceptate asemenea erori, Jira – sau ce CRM folositi voi pt. sprint-uri ( programare, testing & debugging) + containerele virtuale (multi linux VPS servers) unde testati compatibilitatile (apache, nginx, php-fpm, fastcgi, etc) trebuia sa nu ajungeti in asemenea cazuri – la productie nu se accepta asa ceva!
La clientul meu i-a placut mult tema voastra (prezentata de mine), daca pe viitor mai intampin asemenea probleme ii customizez o alta tema sa arate exact ca si a voastra ca si design si atunci voi pierdeti potentiali clienti.
Retineti: clientii se pricep sa scrie, design, hosting lucreaza cei ce se pricep. Dar cei ce se pricep nu au timp de asemenea erori netestate.
Momentan o sa lucrez in continuare pe tema voastra, sper pe viitor sa testati mai mult, intainte de update!
O zi buna & astept patch!
I just purchased Newspaper in order to change the look of our magazine. When reading through the documentation, I read that Apache or Nginx are required. I just contacted the person in charge of our server and the main part of our website and he said that it is Windows II. Does that mean that Newspaper will not run on our server? Currently, it is just installed on my local computer. Thanks.
FYI, I use the latest version of WP from docker
https://hub.docker.com/_/wordpress/
WordPress v.4.9.4
PHP: 7.2.0
Problem exactly with latest version PHP 7.2.0 and upper
because in version 7.2.0+ function create_function() was deprecated.
My project WIP, but I think Support team has to fix it ASAP!
Because if you check https://wordpress.org/about/requirements/
You can find best server configuration:
PHP 7.2 or greater
MySQL 5.6 or greater OR MariaDB 10.0 or greater
Nginx or Apache with mod_rewrite module
HTTPS support
This is highly unusual, we cannot recreate the issue in our tests. The search does not produce this kind of issue in any of our testing.
From what I can find there was a similar issue in an older WordPress version
– https://wpsoul.com/pagination-fix-for-wordpress-4-4-1/
Or server configuration maybe
– http://www.webdesignlah.com/fixing-wordpress-pagination-redirection-loop-nginx/
You could contact the hosting provider as well, maybe they have an idea why this is happening. Let us know the results.
Thanks
Hi,
There still problem with the base pictures “just re-appear” some how…
Look the screenshot:
https://1000wordsmagazine.com/wp-content/uploads/2018/01/tagdiv-error-pictures-re-appear.jpg
last night 22:14 I deleted those pics from wordpress media library — and post updated pictures back again…
Since I reported to you – probably deleted 30 times…
It is outside of the wordpress structuralised media system : wp-uploads folder – but not in the YEAR/MONTH directory..
Yesterday morning I reseted wordpress with clean install after drop all table in db.
Then imported back everything with xml’s.
The problem the same+a few more..
1., mobil theme has interfere with the ahmed kaludi’s ampforwp plugin – mobil-view on desktop/laptop pc. ( contacted with them also )
https://1000wordsmagazine.com/wp-content/uploads/2018/01/26695270_1716932865018171_1038534762_o.jpg
2., author pages 404 ( and only the author pages) — no yoast was installed..
https://1000wordsmagazine.com/wp-content/uploads/2018/01/404-authors-not-work.jpg
3., Theme panel – chinese looks like letters/icons/chars on post sharing option.
https://1000wordsmagazine.com/wp-content/uploads/2018/01/chinese-chars-letter-socialshare.jpg
4., likes disapear / re-appears
5., posts view counts not show in responsive view ( profile – only in landscape view ) nor if mobile theme active
6., and its slowly in wp-admin.
There is a massive server resource ( 30gib ram, 2*2.1 ghz cpu, 100 gib NVE-SSD disk, cloudlinux 7, litespeed webserver, cloudflare railgun, etc ).
When created this ticket the website was on Nginx server. Since its moved to new location, problem not only the same but more.
hm..
Thank you – if you could help.
Zoltan
Hi,
We use the Newspaper theme for a small site that has multiple authors. However, when I type an author’s name in the search box, it gives no result. Any idea why? Is the author field not included in the search? Have even tried using the wpsolr plugin – same result with or without it i.e. no search results when search term is an author’s name. FYI, we’re using the Co-Authors Plus plugin and we’re on nginx.
Theme does not control your hosting setup. Different web servers use different tech, so something working for Apache may not work for Windows or NGINX, etc.
Welcome to WordPress ! 😉
This *is* actually mentioned in the theme docs, under ‘tutorials’ so worth a look also:
https://forum.tagdiv.com/how-to-make-the-site-faster/
-
This reply was modified 8 years by
simchris.
I figured out myself, seems that Nginx was blocking the new Visual Composer version.
Enabled php parse on js files in php-fpm and it works now!
I use the NGINX FastCGI cache.
Is it even necessary to use WP Super Cache?
Happy to letter you know, i checked the plesk, i use apache+nginx(fpm) being the web server, i forgot open the gzip for nginx, so the size much bigger than demo page, now i open it, and the css file size reduce to about 100+k, now my site works well, just letter you know that.
Thanks again,
Kind regards,
You should enable gzip in your webserver (either Apache, or Nginx) and then enable css and javascript compression using .htaccess for the site. This guide will help you also:
When i active the newspaper and visit the home page, i saw the style.css file transfer size more than 1M, and other elements display after the css file transfer completed (the home page was blank when the browser loading the style.css file), then i visit the demo page, found the css file transfer size just less than 100k, that made my site so slow, how can i change the way to load the style.css file.
By the way, i try the apache,apache+nginx(fast cgi),apache+nginx(fpm), and i use plesk being the vps panel.
Thanks a lot.
I got this error when changing elements in tagdiv composer.
After debugging I noticed that security code in my nginx server script was causing this.
After removing the bit of code tagdiv composer worked fine, but I want to secure my uploads folder. How can I make a workaround to have the tagdivcomposer working with this code?
This is the code that was causing conflict:
location ~* /(?:uploads|files)/.*.php$ {
deny all;
access_log off;
log_not_found off;
}
Thanks
I had the same problem – at my side there was an nginx configuration problem.
https://enable-cors.org/server_nginx.html
etc.
Google:
https://www.google.com/search?q=how+to+add+CORS+rule+on+nginx&oq=how+to+add+CORS+rule+on+nginx&aqs=chrome..69i57.5311j0j7&sourceid=chrome&ie=UTF-8
Hello, my theme has character problems of social network icons, I noticed that when I am logged in as administrator and open the site in another tab, the same appears normal, but when removing from the administrator the images and characters of social networks Are bugged. Please wait for directions!
——————
Hello,
This is most likely a font loading problem. Please try the solution posted here: https://webmasters.stackexchange.com/questions/71630/font-blocked-from-loading-by-cross-origin-resource-sharing-policy-no-access-co
If you have any further questions please open a new topic on our official support forum at https://forum.tagdiv.com/forum/newspaper/ The comments section here is destined for presale questions.
Thank you! Bogdan B
———————
Hello friend, the solution presented for htaccess applies only to apache server, nginx server in my case, how can I solve this?
Hello!
I want add some plugins from “Plugins” > “Add New”.
But “Add New” page is blank.
My Local:
* PHP7.1.4
* Nginx
* Local by Flywheel
Thanks
Chris,
Here is the error log from NGINX for broken website:
2017/09/21 23:10:41 [error] 1597#1597: *122945 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function is_category() in /var/www/neosagon.gr/wp-content/themes/Newspaper/includes/wp_booster/td_page_generator.php:25
Stack trace:
#0 /var/www/neosagon.gr/wp-includes/class-wp-hook.php(298): td_page_generator::get_breadcrumbs_json_ld(”)
#1 /var/www/neosagon.gr/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
#2 /var/www/neosagon.gr/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#3 /var/www/neosagon.gr/wp-includes/general-template.php(2589): do_action(‘wp_head’)
#4 /var/www/neosagon.gr/wp-content/themes/Newspaper/header.php(11): wp_head()
#5 /var/www/neosagon.gr/wp-includes/template.php(688): require_once(‘/var/www/neosag…’)
#6 /var/www/neosagon.gr/wp-includes/template.php(647): load_template(‘/var/www/neosag…’, true)
#7 /var/www/neosagon.gr/wp-includes/general-template.php(45): locate_template(Array, true)
#8 /var/www/neosagon.gr/wp-content/themes/Newspaper/page.php(7): get_header()
#9 /var/www/neosagon” while reading upstream, client: 79.131.71.135, server: neosagon.gr, request: “GET / HTTP/2.0”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “neosagon.gr”, referrer: “https://neosagon.gr/wp-admin/tools.php?page=tc-options”
You can see that ../Newspaper/includes/wp_booster/td_page_generator.php calls undefined function is_category() at line 25.
Please help me to resolve the issue.
Sotiris
Hi,
The theme is compatible with both Apache and Nginx
– https://forum.tagdiv.com/requirements-for-newspaper/
Regarding the white space, there seems to be a custom ad inserted in the top section of the page, where the header ad would be
– https://www.screencast.com/t/L7IHY0iCBX
This ad is not loading but the space is reserved. Either check if the ad code is valid and working, or remove it.
Thanks