# \#php

**URL:** https://community.prismic.io/tag/php/36.md

[Latest](https://community.prismic.io/latest.md) · [Categories](https://community.prismic.io/categories.md) · [Tags](https://community.prismic.io/tags.md)

---

## [SEO titles and discription overview](https://community.prismic.io/t/seo-titles-and-discription-overview/4927)

<div class="topic-metadata">

**Author:** [@d.plotnytska.s](https://community.prismic.io/u/d.plotnytska.s)\
**Replies:** 3\
**Last updated:** [April 22, 2021, 11:23am UTC](https://community.prismic.io/t/seo-titles-and-discription-overview/4927 "2021-04-22T11:23:37Z")

</div>

Hello! I have a website with a lot of content and we invest a lot on SEO. Currently we write our articles directly in code, however, we are now preparing to integrate prismic for that part of the website. Considering t…

---

## [CDN vs non-CDN endpoints](https://community.prismic.io/t/cdn-vs-non-cdn-endpoints/11579)

<div class="topic-metadata">

**Author:** [@MichaelVestergaard](https://community.prismic.io/u/MichaelVestergaard)\
**Replies:** 9\
**Last updated:** [June 7, 2023, 1:46pm UTC](https://community.prismic.io/t/cdn-vs-non-cdn-endpoints/11579 "2023-06-07T13:46:08Z")

</div>

I have discovered what I assume is a bug - or maybe just a slow CDN :-) I have a webhook set up to build my static website. I have a system for handling previews too. If I "save and preview" (latest content is loaded),…

---

## [Problem with Preview feature while setting this up on Magento using prismic-php-sdk](https://community.prismic.io/t/problem-with-preview-feature-while-setting-this-up-on-magento-using-prismic-php-sdk/12359)

<div class="topic-metadata">

**Author:** [@quyendam.2612](https://community.prismic.io/u/quyendam.2612)\
**Replies:** 3\
**Last updated:** [February 15, 2023, 3:38pm UTC](https://community.prismic.io/t/problem-with-preview-feature-while-setting-this-up-on-magento-using-prismic-php-sdk/12359 "2023-02-15T15:38:22Z")

</div>

Hi, I have been struggling with the preview function while setting Prismic for my new project for a while. I only can get the new content after Publish a document, the toolbar doesn't work and as you can see in the …

---

## [Regan Baker Design](https://community.prismic.io/t/regan-baker-design/11613)

<div class="topic-metadata">

**Author:** [@MichaelVestergaard](https://community.prismic.io/u/MichaelVestergaard)\
**Replies:** 6\
**Last updated:** [November 17, 2022, 12:30pm UTC](https://community.prismic.io/t/regan-baker-design/11613 "2022-11-17T12:30:41Z")

</div>

The new website of Regan Baker Design. Static generated with PHP and custom front-end. Design and concept: https://thebeauxartsdigital.com/ Development: https://iliketoplay.dk/

---

## [Newbie with Prismic](https://community.prismic.io/t/newbie-with-prismic/10655)

<div class="topic-metadata">

**Author:** [@joaquin.giraldez](https://community.prismic.io/u/joaquin.giraldez)\
**Replies:** 1\
**Last updated:** [July 21, 2022, 10:57pm UTC](https://community.prismic.io/t/newbie-with-prismic/10655 "2022-07-21T22:57:08Z")

</div>

First of all I would like to introduce myself and say that I am newbie in prismic. I have integrated prismic with an existing laravel project, following the documentation (01-getting-started/02-integrating-with-existing…

---

## [NULL data in query result](https://community.prismic.io/t/null-data-in-query-result/1405)

<div class="topic-metadata">

**Author:** [@lrmpham](https://community.prismic.io/u/lrmpham)\
**Replies:** 16\
**Last updated:** [June 28, 2021, 10:22pm UTC](https://community.prismic.io/t/null-data-in-query-result/1405 "2021-06-28T22:22:12Z")

</div>

Hi, I'm using the following query: $response = $api-\>query( Predicates::at('document.type', 'press\_releases'), \[ 'pageSize' =\> 50, 'page' =\> 1, 'orderings' =\> '\[my.press\_releases.live\_date desc\]' \] ); Many of the r…

---

## [Route Resolver in PHP](https://community.prismic.io/t/route-resolver-in-php/9883)

<div class="topic-metadata">

**Author:** [@peter2](https://community.prismic.io/u/peter2)\
**Replies:** 1\
**Last updated:** [April 27, 2022, 7:01pm UTC](https://community.prismic.io/t/route-resolver-in-php/9883 "2022-04-27T19:01:35Z")

</div>

I would need the url field of documents populated. In Javascript, it was as simple as adding a Route Resolver, but I don't find any docu on how to do this in PHP using the php-kit. Is there a solution? Thanks, Peter

---

## [Need help in deployment on Digital Ocean](https://community.prismic.io/t/need-help-in-deployment-on-digital-ocean/8963)

<div class="topic-metadata">

**Author:** [@hmzamalik47](https://community.prismic.io/u/hmzamalik47)\
**Replies:** 1\
**Last updated:** [February 8, 2022, 2:43am UTC](https://community.prismic.io/t/need-help-in-deployment-on-digital-ocean/8963 "2022-02-08T02:43:33Z")

</div>

Hi, I have created a website using prismic and uploaded all of the code to Digital Ocean Droplet. but when I go to the site and check I don't see the site live. I have run the composer on the life as well but that didn't…

---

## [Preview unpublished documents](https://community.prismic.io/t/preview-unpublished-documents/1592)

<div class="topic-metadata">

**Author:** [@lrmpham](https://community.prismic.io/u/lrmpham)\
**Replies:** 2\
**Last updated:** [August 19, 2020, 3:55pm UTC](https://community.prismic.io/t/preview-unpublished-documents/1592 "2020-08-19T15:55:22Z")

</div>

Hi, I'm using the Prismic php-kit in a codeigniter 4 app. I have the Preview functionality working, going directly to the page that I'm previewing. Is there a way to provide a preview link for unpublished documents ? …

---

## [New PHP integration, API Client and Template Website built with Mezzio](https://community.prismic.io/t/new-php-integration-api-client-and-template-website-built-with-mezzio/905)

<div class="topic-metadata">

**Author:** [@gsteel](https://community.prismic.io/u/gsteel)\
**Replies:** 1\
**Last updated:** [June 19, 2020, 8:32am UTC](https://community.prismic.io/t/new-php-integration-api-client-and-template-website-built-with-mezzio/905 "2020-06-19T08:32:07Z")

</div>

Hello All, I've been working on re-tooling and modernising a load of stuff for PHP and my own client work that I've open-sourced. Much of it needs some polish, but it is working together very nicely and test coverage is…

---

## [Can't execute './serve.sh' on windows](https://community.prismic.io/t/cant-execute-serve-sh-on-windows/674)

<div class="topic-metadata">

**Author:** [@anthony](https://community.prismic.io/u/anthony)\
**Replies:** 7\
**Last updated:** [June 29, 2020, 12:24pm UTC](https://community.prismic.io/t/cant-execute-serve-sh-on-windows/674 "2020-06-29T12:24:08Z")

</div>

using the online quick start and after 4 hours finally got composer into cmd prompt. finally got composer install lto work but it does not accept ./serve.sh that the steps tell you to run as a command. if i just type s…

---

## [Document changes not reflected in API response](https://community.prismic.io/t/document-changes-not-reflected-in-api-response/1298)

<div class="topic-metadata">

**Author:** [@dev4](https://community.prismic.io/u/dev4)\
**Replies:** 3\
**Last updated:** [July 21, 2020, 3:59pm UTC](https://community.prismic.io/t/document-changes-not-reflected-in-api-response/1298 "2020-07-21T15:59:09Z")

</div>

Hi, Whenever we make changes to existing documents, the API doesn't display these changes and it usually takes a few hours for them to appear. For one of our documents, we changed an image and it has been 24 hours that …

---

## [How to include the Prismic library in an existing Laravel project?](https://community.prismic.io/t/how-to-include-the-prismic-library-in-an-existing-laravel-project/1299)

<div class="topic-metadata">

**Author:** [@robo-tix](https://community.prismic.io/u/robo-tix)\
**Replies:** 2\
**Last updated:** [July 22, 2020, 8:33am UTC](https://community.prismic.io/t/how-to-include-the-prismic-library-in-an-existing-laravel-project/1299 "2020-07-22T08:33:10Z")

</div>

Hi folks. I've just started and would like to integrate Prismic with an existing Laravel project but the documentation is not clear for me. Point 3 on this page: Prismic’s documentation for PHP, Laravel, Java, .NET, and…

---

## [Fulltext search issue](https://community.prismic.io/t/fulltext-search-issue/1406)

<div class="topic-metadata">

**Author:** [@lrmpham](https://community.prismic.io/u/lrmpham)\
**Replies:** 10\
**Last updated:** [August 4, 2020, 4:33am UTC](https://community.prismic.io/t/fulltext-search-issue/1406 "2020-08-04T04:33:14Z")

</div>

Hi, Here is my fulltext query - $response = $api-\>query( Predicates::fulltext('document', 'museum') ); Only 3 results come back although there are many documents of type press\_releases that has museum in their title.…

---

## [Odd 404 error on all pages](https://community.prismic.io/t/odd-404-error-on-all-pages/1602)

<div class="topic-metadata">

**Author:** [@lrmpham](https://community.prismic.io/u/lrmpham)\
**Replies:** 2\
**Last updated:** [August 20, 2020, 7:44pm UTC](https://community.prismic.io/t/odd-404-error-on-all-pages/1602 "2020-08-20T19:44:29Z")

</div>

Hi, I've been getting this odd 404 error on all pages on my site: The GET request to the repository museumofthebible.cdn.prismic.io resulted in a 404 Not Found error. Complete URL: https://museumofthebible.cdn.prismic.i…

---

## [How do you set the Main Document in the Edit Button?](https://community.prismic.io/t/how-do-you-set-the-main-document-in-the-edit-button/1659)

<div class="topic-metadata">

**Author:** [@benji](https://community.prismic.io/u/benji)\
**Replies:** 1\
**Last updated:** [August 25, 2020, 9:42pm UTC](https://community.prismic.io/t/how-do-you-set-the-main-document-in-the-edit-button/1659 "2020-08-25T21:42:40Z")

</div>

When using the Edit Button, I love the fact that it "sniffs" for documents associated with the current page, however, the Main document is always showing as 'Footer', which is a document we pull in on every request, that…

---

## [API return Unpublished documents](https://community.prismic.io/t/api-return-unpublished-documents/1926)

<div class="topic-metadata">

**Author:** [@long](https://community.prismic.io/u/long)\
**Replies:** 4\
**Last updated:** [September 28, 2020, 9:25am UTC](https://community.prismic.io/t/api-return-unpublished-documents/1926 "2020-09-28T09:25:20Z")

</div>

Hi, I have 15 published and 110 unpublished documents of type press\_releases. When I do a Predicates::at('document.type', 'press\_releases') query, it is return all 125 documents. Looks like it just started doing this …

---

## [Preview Expired Fail More Gracefully?](https://community.prismic.io/t/preview-expired-fail-more-gracefully/1685)

<div class="topic-metadata">

**Author:** [@hola](https://community.prismic.io/u/hola)\
**Replies:** 3\
**Last updated:** [August 31, 2020, 1:03pm UTC](https://community.prismic.io/t/preview-expired-fail-more-gracefully/1685 "2020-08-31T13:03:44Z")

</div>

I know this has been discussed before. Preview tokens expire but my issue is that the way it fails is spectacular, maybe it is an issue of my implementation or the PHP Api: When working locally I'm able to see the er…

---

## [Php-kit Prismic client search results are inconsistent](https://community.prismic.io/t/php-kit-prismic-client-search-results-are-inconsistent/1829)

<div class="topic-metadata">

**Author:** [@robert.doidge](https://community.prismic.io/u/robert.doidge)\
**Replies:** 5\
**Last updated:** [September 16, 2020, 4:29pm UTC](https://community.prismic.io/t/php-kit-prismic-client-search-results-are-inconsistent/1829 "2020-09-16T16:29:47Z")

</div>

I'm debugging a strange issue where some of my users cannot see my documents when most other users can. My website has an integration with Prismic where we fetch documents and render them based on the URL the user visits…

---

## [Is it possible to differentiate between different types of preview?](https://community.prismic.io/t/is-it-possible-to-differentiate-between-different-types-of-preview/2317)

<div class="topic-metadata">

**Author:** [@martin.kzh](https://community.prismic.io/u/martin.kzh)\
**Replies:** 1\
**Last updated:** [October 17, 2020, 12:55am UTC](https://community.prismic.io/t/is-it-possible-to-differentiate-between-different-types-of-preview/2317 "2020-10-17T00:55:23Z")

</div>

The preview button lets you preview pages at different stages (for example published, saved-but-not-yet-published, and scheduled-to-be-published). How can the preview endpoint differentiate these so it can eventually red…

---

## [Pagination stoped working](https://community.prismic.io/t/pagination-stoped-working/3310)

<div class="topic-metadata">

**Author:** [@robert.areno](https://community.prismic.io/u/robert.areno)\
**Replies:** 0\
**Last updated:** [December 21, 2020, 10:40pm UTC](https://community.prismic.io/t/pagination-stoped-working/3310 "2020-12-21T22:40:27Z")

</div>

Hi guys, We have a really old solution using Prismic and recently upgraded to 7.3. During that time (we think) pagination stopped working... It doesn't matter what kind of page variable we pass, it still returns the w…

---

## [PHP Template, Deploy on a Shared Hosting](https://community.prismic.io/t/php-template-deploy-on-a-shared-hosting/2599)

<div class="topic-metadata">

**Author:** [@julianperoncini](https://community.prismic.io/u/julianperoncini)\
**Replies:** 4\
**Last updated:** [November 11, 2020, 6:49pm UTC](https://community.prismic.io/t/php-template-deploy-on-a-shared-hosting/2599 "2020-11-11T18:49:48Z")

</div>

Hello! I was trying to upload a test site to a shared hosting that clearly uses FTP, I was seeing what were the possibilities of being able to upload the php template there, since it uses composer, etc. Any solution or …

---

## [Extended quota for record size](https://community.prismic.io/t/extended-quota-for-record-size/4412)

<div class="topic-metadata">

**Author:** [@sulpriv](https://community.prismic.io/u/sulpriv)\
**Replies:** 8\
**Last updated:** [March 13, 2021, 11:14am UTC](https://community.prismic.io/t/extended-quota-for-record-size/4412 "2021-03-13T11:14:07Z")

</div>

We're getting the following response from the API for one of our documents. Do we need our quota extended? I thought the maximum document size is 250kb? "Record at the position 0 objectID=XXXXXXXXXXXXXXXX is too big siz…

---

## [A post in "PHP-SDK Guzzle is running old version" requires staff attention](https://community.prismic.io/t/a-post-in-php-sdk-guzzle-is-running-old-version-requires-staff-attention/4335)

<div class="topic-metadata">

**Author:** [@adam2](https://community.prismic.io/u/adam2)\
**Replies:** 0\
**Last updated:** [March 2, 2021, 11:44pm UTC](https://community.prismic.io/t/a-post-in-php-sdk-guzzle-is-running-old-version-requires-staff-attention/4335 "2021-03-02T23:44:02Z")

</div>

I would like to see an update to this thread from the Prismic team. The lack of support or updates for the PHP SDK are preventing me from upgrading my project to the latest version of Laravel because of this outdated G…

---

## [PHP-SDK Guzzle is running old version](https://community.prismic.io/t/php-sdk-guzzle-is-running-old-version/2399)

<div class="topic-metadata">

**Author:** [@jonathan](https://community.prismic.io/u/jonathan)\
**Replies:** 11\
**Last updated:** [March 3, 2021, 12:47pm UTC](https://community.prismic.io/t/php-sdk-guzzle-is-running-old-version/2399 "2021-03-03T12:47:42Z")

</div>

Hi there, we use your Github PHP-SDK (prismic/php-sdk - Packagist) but it hasn't been maintained and is using an old version of Guzzle 6.x, when is this going to be updated to use Guzzle 7.x as the minimum version? Ther…

---

## [Preview not working on Macs](https://community.prismic.io/t/preview-not-working-on-macs/4509)

<div class="topic-metadata">

**Author:** [@long](https://community.prismic.io/u/long)\
**Replies:** 13\
**Last updated:** [March 16, 2021, 6:17pm UTC](https://community.prismic.io/t/preview-not-working-on-macs/4509 "2021-03-16T18:17:21Z")

</div>

Hi, When loading a Preview on any browser on a Mac, the toolbar /edit pencil icon does not show up. On a Windows PC it works ok. I have the same issue as this post here - {repoURL}/toolbar/state is returning a 404; Pr…

---

## [Possible to fetch only tags?](https://community.prismic.io/t/possible-to-fetch-only-tags/4392)

<div class="topic-metadata">

**Author:** [@devteam](https://community.prismic.io/u/devteam)\
**Replies:** 2\
**Last updated:** [April 20, 2021, 5:43pm UTC](https://community.prismic.io/t/possible-to-fetch-only-tags/4392 "2021-04-20T17:43:26Z")

</div>

We would like to fetch a list of all tags used by a particular document type, as we were planning on using tags to show filters for the data. We were using the tags returned in the initial API response, but this seems to…

---

## [Using Prismic increased 10x our page loading time](https://community.prismic.io/t/using-prismic-increased-10x-our-page-loading-time/4298)

<div class="topic-metadata">

**Author:** [@ludovicmeyer](https://community.prismic.io/u/ludovicmeyer)\
**Replies:** 4\
**Last updated:** [March 4, 2021, 10:15pm UTC](https://community.prismic.io/t/using-prismic-increased-10x-our-page-loading-time/4298 "2021-03-04T22:15:18Z")

</div>

Hi, Most pages of the website I'm building are loading in 30-100ms in dev. If I load a prismic document, the loading time increases around 300-800ms in dev. In preprod env. (dedicated server) the loading time is badly…

---

## [Problem preview](https://community.prismic.io/t/problem-preview/3933)

<div class="topic-metadata">

**Author:** [@m.mykita](https://community.prismic.io/u/m.mykita)\
**Replies:** 8\
**Last updated:** [March 9, 2021, 8:06pm UTC](https://community.prismic.io/t/problem-preview/3933 "2021-03-09T20:06:01Z")

</div>

Hi everyone By doing my tests I see that I have the following warning Screenshot by Lightshot this cookie is set by prismic via the piece of javascript code that I set up. I don't know exactly what this piece of code i…

---

## [Error message on empty document](https://community.prismic.io/t/error-message-on-empty-document/4604)

<div class="topic-metadata">

**Author:** [@intranet](https://community.prismic.io/u/intranet)\
**Replies:** 1\
**Last updated:** [March 22, 2021, 11:14am UTC](https://community.prismic.io/t/error-message-on-empty-document/4604 "2021-03-22T11:14:07Z")

</div>

Hello, When I try to execute the following code (see image below) and I have no events in prismic I get a 400 error code bad request. But when I fill in 1 event it works, but there are situations that there are no event…

[Next page](https://community.prismic.io/tag/php/36.md?match_all_tags=true&page=1&tags%5B%5D=php)
